Skip to content

Commit

Permalink
Fix maintenance do not start after 1.21.2
Browse files Browse the repository at this point in the history
  • Loading branch information
louislam committed May 7, 2023
1 parent 03aa685 commit d23cb0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/model/maintenance.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit d23cb0b

Please sign in to comment.