Skip to content

Commit 0d3b58a

Browse files
committed
[FEATURE] versionInfo: Use UTC Timestamp
Resolves https://github.com/SAP/ui5-builder/issues/347
1 parent d60c67d commit 0d3b58a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/processors/versionInfoGenerator.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ function pad(v) {
55
}
66
function getTimestamp() {
77
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());
8+
const year = date.getUTCFullYear();
9+
const month = pad(date.getUTCMonth() + 1);
10+
const day = pad(date.getUTCDate());
11+
const hours = pad(date.getUTCHours());
12+
const minutes = pad(date.getUTCMinutes());
1313
// yyyyMMddHHmm
1414
return year + month + day + hours + minutes;
1515
}

0 commit comments

Comments
 (0)