From 7a91cad17f8900d0cedb59c9e6a06a64d8a14dbd Mon Sep 17 00:00:00 2001 From: Andy Buck Date: Tue, 6 Jun 2023 09:22:44 -0400 Subject: [PATCH 1/2] get UTC date --- oholgetplayerstats.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { From 8cad769b3a5fdfb51ad470a271a12adf2432ab1c Mon Sep 17 00:00:00 2001 From: Andy Buck Date: Tue, 6 Jun 2023 09:24:40 -0400 Subject: [PATCH 2/2] Get UTC date in oholplayersearch.js --- oholplayersearch.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {