mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 18:24:03 +00:00
Fix maintenance do not start after 1.21.2
This commit is contained in:
parent
03aa685d3f
commit
d23cb0b382
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue