From 39228e1fc9f4b6a85876e1cbc623736f77e634b3 Mon Sep 17 00:00:00 2001 From: liangtongchuan Date: Thu, 18 Mar 2021 21:35:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=8D=E5=8D=96=E8=A1=8C=EF=BC=9A=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=B5=8B=E8=AF=95=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/pubUtils/timeUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/pubUtils/timeUtil.ts b/shared/pubUtils/timeUtil.ts index 99dbe0d99..b0f1c9e16 100644 --- a/shared/pubUtils/timeUtil.ts +++ b/shared/pubUtils/timeUtil.ts @@ -159,7 +159,7 @@ export function formatTime(d: Date, type: number) { export function getNextTime(date: Date, h: number, m = 0, s = 0, ms = 0): Date { const milliseconds = date.getTime(); const timeToday = new Date(milliseconds).setHours(h, m, s, ms); - return timeToday < milliseconds ? new Date(timeToday) : new Date(timeToday + PER_DAY * PER_SECOND); + return timeToday >= milliseconds ? new Date(timeToday) : new Date(timeToday + PER_DAY * PER_SECOND); } /**