We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d60c67d commit 660a83eCopy full SHA for 660a83e
lib/processors/versionInfoGenerator.js
@@ -5,11 +5,11 @@ function pad(v) {
5
}
6
function getTimestamp() {
7
const date = new Date();
8
- const year = date.getFullYear();
9
- const month = pad(date.getMonth() + 1);
10
- const day = pad(date.getDate());
11
- const hours = pad(date.getHours());
12
- const minutes = pad(date.getMinutes());
+ const year = date.getUTCFullYear();
+ const month = pad(date.getUTCMonth() + 1);
+ const day = pad(date.getUTCDate());
+ const hours = pad(date.getUTCHours());
+ const minutes = pad(date.getUTCMinutes());
13
// yyyyMMddHHmm
14
return year + month + day + hours + minutes;
15
0 commit comments