Skip to content

Commit 432e7b0

Browse files
authored
Retain timezone in system.getVersion() date-time (#1828)
1 parent 047f532 commit 432e7b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build_plugs_libraries.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ export async function updateVersionFile() {
6262
}
6363

6464
const versionFilePath = "./public_version.ts";
65-
// Write version to file with date in YYYY-MM-DD format attached to the version
65+
// Write version to file with date in YYYY-MM-DDTHH-MM-SSZ format attached to the version
6666
const versionContent = `export const publicVersion = "${commitVersion}-${
67-
new Date().toISOString().split(".")[0].replaceAll(":", "-")
67+
new Date().toISOString().split(".")[0].replaceAll(":", "-").concat("Z")
6868
}";`;
6969

7070
await Deno.writeTextFile(versionFilePath, versionContent);

0 commit comments

Comments
 (0)