From 11a62adb7103e2cbf41b0b13a874c517b981deb3 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 18 Apr 2020 19:28:01 -0400 Subject: [PATCH] Fix today util function --- util/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/Util.js b/util/Util.js index 671e3b0c..f8e1c2e5 100644 --- a/util/Util.js +++ b/util/Util.js @@ -129,7 +129,7 @@ module.exports = class Util { static today(timeZone) { const now = new Date(); - if (timeZone) now.setUTCHours(timeZone); + if (timeZone) now.setUTCHours(now.getUTCHours() + timeZone); now.setHours(0); now.setMinutes(0); now.setSeconds(0);