Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
date strings
Browse files Browse the repository at this point in the history
  • Loading branch information
sametcn99 committed Mar 2, 2024
1 parent ef62d1f commit 4bd7e83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions components/repositories/ReposCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,8 @@ export default function ReposCard({
)}
</>
)}
<Text>
Created at: {new Date(repo.created_at).toLocaleDateString()}
</Text>
<Text>
Last update: {new Date(repo.pushed_at).toLocaleDateString()}
</Text>
<Text>Last update: {new Date(repo.pushed_at).toUTCString()}</Text>
<Text>Created at: {new Date(repo.created_at).toUTCString()}</Text>
</Box>
<Box className="flex w-full flex-row flex-wrap justify-center gap-2">
{repo.topics.map((topic: string, index: number) => (
Expand Down
8 changes: 2 additions & 6 deletions components/repositories/Repository.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,8 @@ export default function Repository({ repo }: { repo: GitHubRepo }) {
)}
</>
)}
<Text>
Created at: {new Date(repo.created_at).toLocaleDateString()}
</Text>
<Text>
Last update: {new Date(repo.pushed_at).toLocaleDateString()}
</Text>
<Text>Last update: {new Date(repo.pushed_at).toUTCString()}</Text>
<Text>Created at: {new Date(repo.created_at).toUTCString()}</Text>
</Box>
<Box className="flex w-full flex-row flex-wrap justify-center gap-2">
{repo.topics.map((topic: any, index: any) => (
Expand Down

1 comment on commit 4bd7e83

@vercel
Copy link

@vercel vercel bot commented on 4bd7e83 Mar 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.