Skip to content

Commit 8a0a18c

Browse files
shorten pre-release version number (#1456)
1 parent d2bb465 commit 8a0a18c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/preview_package.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import { exec, getExtensionVersion, getRootDirectory, main } from "./lib/utilities";
1717

1818
/**
19-
* Formats the given date as a string in the form "YYYYMMddhhmm".
19+
* Formats the given date as a string in the form "YYYYMMdd".
2020
*
2121
* @param date The date to format as a string.
2222
* @returns The formatted date.
@@ -25,9 +25,7 @@ function formatDate(date: Date): string {
2525
const year = date.getUTCFullYear().toString().padStart(4, "0");
2626
const month = (date.getUTCMonth() + 1).toString().padStart(2, "0");
2727
const day = date.getUTCDate().toString().padStart(2, "0");
28-
const hour = date.getUTCHours().toString().padStart(2, "0");
29-
const minutes = date.getUTCMinutes().toString().padStart(2, "0");
30-
return year + month + day + hour + minutes;
28+
return year + month + day;
3129
}
3230

3331
main(async () => {

0 commit comments

Comments
 (0)