diff --git a/oholgetplayerstats.js b/oholgetplayerstats.js index ce8fe41..d4d0b6f 100644 --- a/oholgetplayerstats.js +++ b/oholgetplayerstats.js @@ -564,9 +564,9 @@ function getDateStringFromUnixTime(unixTimeStamp) { } function jsDateToDate(jsDate, date) { - date[0] = jsDate.getFullYear(); - date[1] = jsDate.getMonth()+1; - date[2] = jsDate.getDate(); + date[0] = jsDate.getUTCFullYear(); + date[1] = jsDate.getUTCMonth()+1; + date[2] = jsDate.getUTCDate(); } function increaseDate(date) { diff --git a/oholplayersearch.js b/oholplayersearch.js index 9a88ae1..148ced7 100644 --- a/oholplayersearch.js +++ b/oholplayersearch.js @@ -440,9 +440,9 @@ function getDateStringFromUnixTime(unixTimeStamp) { } function jsDateToDate(jsDate, date) { - date[0] = jsDate.getFullYear(); - date[1] = jsDate.getMonth()+1; - date[2] = jsDate.getDate(); + date[0] = jsDate.getUTCFullYear(); + date[1] = jsDate.getUTCMonth()+1; + date[2] = jsDate.getUTCDate(); } function increaseDate(date) {