mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-08-03 09:31:52 +00:00
Remove date parsing because different browsers do different things
This commit is contained in:
@@ -16,10 +16,7 @@ function GedcomLink(props: {url: string; text: string}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function formatBuildDate(dateString: string) {
|
function formatBuildDate(dateString: string) {
|
||||||
return new Date(dateString)
|
return dateString.slice(0, 16);
|
||||||
.toISOString()
|
|
||||||
.slice(0, 16)
|
|
||||||
.replace('T', ' ');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The intro page. */
|
/** The intro page. */
|
||||||
|
|||||||
Reference in New Issue
Block a user