diff --git a/util/Util.js b/util/Util.js index f8e1c2e5..bb79cdda 100644 --- a/util/Util.js +++ b/util/Util.js @@ -129,11 +129,11 @@ module.exports = class Util { static today(timeZone) { const now = new Date(); - if (timeZone) now.setUTCHours(now.getUTCHours() + timeZone); now.setHours(0); now.setMinutes(0); now.setSeconds(0); now.setMilliseconds(0); + if (timeZone) now.setUTCHours(now.getUTCHours() + timeZone); return now; }