We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc6e0e7 commit 743eee0Copy full SHA for 743eee0
1 file changed
src/components/AppBar/index.tsx
@@ -13,7 +13,7 @@ export function AppBar() {
13
const showVersions = useCallback(() => {
14
const convertVersion = (v: string): string => {
15
const timestamp: string = v.split("v")[1];
16
- const date: Date = new Date(Number(timestamp));
+ const date: Date = new Date(Number(timestamp) * 1000);
17
18
const year: string = (date.getFullYear()).toString().padStart(4, "0");
19
const month: string = (date.getMonth() + 1).toString().padStart(2, "0");
@@ -23,7 +23,7 @@ export function AppBar() {
23
const seconds: string = (date.getSeconds()).toString().padStart(2, "0");
24
25
const dfVer = `v${year}.${month}.${day}.${hours}${minutes}${seconds}`;
26
- const tsVer = `v${timestamp}`;
+ const tsVer = v;
27
28
return `${dfVer} (${tsVer})`;
29
};
0 commit comments