diff --git a/lib/processors/versionInfoGenerator.js b/lib/processors/versionInfoGenerator.js index 61b4ab31f..93f9c4150 100644 --- a/lib/processors/versionInfoGenerator.js +++ b/lib/processors/versionInfoGenerator.js @@ -5,11 +5,11 @@ function pad(v) { } function getTimestamp() { const date = new Date(); - const year = date.getFullYear(); - const month = pad(date.getMonth() + 1); - const day = pad(date.getDate()); - const hours = pad(date.getHours()); - 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()); // yyyyMMddHHmm return year + month + day + hours + minutes; }