Fix maintenance do not start after 1.21.2

pull/3135/head
Louis Lam 2 years ago
parent 03aa685d3f
commit d23cb0b382

@ -290,7 +290,7 @@ class Maintenance extends BeanModel {
} }
getRunningTimeslot() { 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 end = start.add(this.duration, "second");
let current = dayjs(); let current = dayjs();

Loading…
Cancel
Save