mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-29 22:47:52 +02:00
docs: display last canary publish date in human-readable format (#7367)
This commit is contained in:
parent
5bc50ff71f
commit
77fa3d1470
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ export function PublishTime(): JSX.Element | null {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return (
|
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}."
|
"The latest canary version that's available on npm is published at {time}."
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue