Fix today util function

This commit is contained in:
Dragon Fire
2020-04-18 19:28:01 -04:00
parent 09a0be1502
commit 11a62adb71
+1 -1
View File
@@ -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);