拍卖行:修改测试报错
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user