拍卖行:修改测试报错

This commit is contained in:
liangtongchuan
2021-03-18 21:35:26 +08:00
parent 180f147951
commit 39228e1fc9
+1 -1
View File
@@ -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 { export function getNextTime(date: Date, h: number, m = 0, s = 0, ms = 0): Date {
const milliseconds = date.getTime(); const milliseconds = date.getTime();
const timeToday = new Date(milliseconds).setHours(h, m, s, ms); 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);
} }
/** /**