From 4bd7e83aa1cfa88192012b55268e392816462e41 Mon Sep 17 00:00:00 2001 From: samet Date: Sat, 2 Mar 2024 23:44:29 +0300 Subject: [PATCH] date strings --- components/repositories/ReposCard.tsx | 8 ++------ components/repositories/Repository.tsx | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/components/repositories/ReposCard.tsx b/components/repositories/ReposCard.tsx index 64efe55..b1a09db 100644 --- a/components/repositories/ReposCard.tsx +++ b/components/repositories/ReposCard.tsx @@ -138,12 +138,8 @@ export default function ReposCard({ )} )} - - Created at: {new Date(repo.created_at).toLocaleDateString()} - - - Last update: {new Date(repo.pushed_at).toLocaleDateString()} - + Last update: {new Date(repo.pushed_at).toUTCString()} + Created at: {new Date(repo.created_at).toUTCString()} {repo.topics.map((topic: string, index: number) => ( diff --git a/components/repositories/Repository.tsx b/components/repositories/Repository.tsx index 6df5b81..9af8375 100644 --- a/components/repositories/Repository.tsx +++ b/components/repositories/Repository.tsx @@ -99,12 +99,8 @@ export default function Repository({ repo }: { repo: GitHubRepo }) { )} )} - - Created at: {new Date(repo.created_at).toLocaleDateString()} - - - Last update: {new Date(repo.pushed_at).toLocaleDateString()} - + Last update: {new Date(repo.pushed_at).toUTCString()} + Created at: {new Date(repo.created_at).toUTCString()} {repo.topics.map((topic: any, index: any) => (