mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Fix today util function
This commit is contained in:
+1
-1
@@ -129,7 +129,7 @@ module.exports = class Util {
|
|||||||
|
|
||||||
static today(timeZone) {
|
static today(timeZone) {
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
if (timeZone) now.setUTCHours(timeZone);
|
if (timeZone) now.setUTCHours(now.getUTCHours() + timeZone);
|
||||||
now.setHours(0);
|
now.setHours(0);
|
||||||
now.setMinutes(0);
|
now.setMinutes(0);
|
||||||
now.setSeconds(0);
|
now.setSeconds(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user