Skip to content

Commit 743eee0

Browse files
committed
Fixed Version
1 parent fc6e0e7 commit 743eee0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/AppBar/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function AppBar() {
1313
const showVersions = useCallback(() => {
1414
const convertVersion = (v: string): string => {
1515
const timestamp: string = v.split("v")[1];
16-
const date: Date = new Date(Number(timestamp));
16+
const date: Date = new Date(Number(timestamp) * 1000);
1717

1818
const year: string = (date.getFullYear()).toString().padStart(4, "0");
1919
const month: string = (date.getMonth() + 1).toString().padStart(2, "0");
@@ -23,7 +23,7 @@ export function AppBar() {
2323
const seconds: string = (date.getSeconds()).toString().padStart(2, "0");
2424

2525
const dfVer = `v${year}.${month}.${day}.${hours}${minutes}${seconds}`;
26-
const tsVer = `v${timestamp}`;
26+
const tsVer = v;
2727

2828
return `${dfVer} (${tsVer})`;
2929
};

0 commit comments

Comments
 (0)