1
0
Fork 0

fix timezone issue in changelog generation

This commit is contained in:
Enoch Riese 2022-07-03 18:28:42 -05:00
parent a9449631bc
commit 0787d5bf69
91 changed files with 731 additions and 731 deletions

View file

@ -403,9 +403,9 @@ function packageChangelog(pkgName) {
function formatDate(date) {
let d = new Date(date),
month = '' + (d.getMonth() + 1),
day = '' + d.getDate(),
year = d.getFullYear()
month = '' + (d.getUTCMonth() + 1),
day = '' + d.getUTCDate(),
year = d.getUTCFullYear()
if (month.length < 2) month = '0' + month
if (day.length < 2) day = '0' + day