Skip to content

Commit

Permalink
docs: display last canary publish date in human-readable format (#7367)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena authored May 7, 2022
1 parent 5bc50ff commit 77fa3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/community/Versions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function PublishTime(): JSX.Element | null {
return null;
}
return (
<Translate values={{time: <code>{time}</code>}}>
<Translate values={{time: <b>{new Date(time).toLocaleString()}</b>}}>
{
"The latest canary version that's available on npm is published at {time}."
}
Expand Down

0 comments on commit 77fa3d1

Please sign in to comment.