mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-09-08 02:12:10 +00:00
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() {
|
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…
Reference in New Issue
Block a user