Make version number based on UTC time (#8796)

pull/8795/head
Bram Kragten 2021-04-02 00:33:11 +02:00 committed by GitHub
parent 8301dffb21
commit 05ea3b8187
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -10,10 +10,10 @@ function patch(version) {
function today() { function today() {
const now = new Date(); const now = new Date();
return `${now.getFullYear()}${String(now.getMonth() + 1).padStart( return `${now.getUTCFullYear()}${String(now.getUTCMonth() + 1).padStart(
2, 2,
"0" "0"
)}${String(now.getDate()).padStart(2, "0")}.0`; )}${String(now.getUTCDate()).padStart(2, "0")}.0`;
} }
function auto(version) { function auto(version) {