Fix maintenance do not start after 1.21.2
This commit is contained in:
parent
03aa685d3f
commit
d23cb0b382
|
@ -290,7 +290,7 @@ class Maintenance extends BeanModel {
|
|||
}
|
||||
|
||||
getRunningTimeslot() {
|
||||
let start = dayjs(this.beanMeta.job.nextRun(dayjs().add(-this.duration, "second").format("YYYY-MM-DD HH:mm:ss")));
|
||||
let start = dayjs(this.beanMeta.job.nextRun(dayjs().add(-this.duration, "second").toDate()));
|
||||
let end = start.add(this.duration, "second");
|
||||
let current = dayjs();
|
||||
|
||||
|
|
Loading…
Reference in New Issue