Skip to content

Commit

Permalink
Merge pull request #511 from bandada-infra/ref/date-format
Browse files Browse the repository at this point in the history
Update the way dates are displayed
  • Loading branch information
vplasencia authored May 22, 2024
2 parents 94e3d94 + 77b5890 commit e2c80a9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
13 changes: 12 additions & 1 deletion apps/docs/src/components/RenderArticles/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,18 @@ export default function RenderArticles(): JSX.Element {
>
{article.title}
</a>{" "}
- {article.authors.join(", ")} (<i>{article.date}</i>)
- {article.authors.join(", ")} (
<i>
{new Date(article.date).toLocaleDateString(
"en-US",
{
year: "numeric",
month: "short",
day: "numeric"
}
)}
</i>
)
</div>
))}
</div>
Expand Down
11 changes: 10 additions & 1 deletion apps/docs/src/components/RenderVideos/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ export default function RenderVideos(): JSX.Element {
>
{video.title}
</a>{" "}
- {video.speakers.join(", ")} (<i>{video.date}</i>)
- {video.speakers.join(", ")} at{" "}
<u>{video.eventName}</u> (
<i>
{new Date(video.date).toLocaleDateString("en-US", {
year: "numeric",
month: "short",
day: "numeric"
})}
</i>
)
</div>
))}
</div>
Expand Down

0 comments on commit e2c80a9

Please sign in to comment.