mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-20 21:48:54 -04:00
- Maintenance standardize datetime format to YYYY-MM-DD hh:mm:ss
- Import dayjs extensions one time only - Maintenance activeCondition centralize
This commit is contained in:
parent
4002b9f577
commit
b1465c0282
14 changed files with 51 additions and 61 deletions
|
@ -6,11 +6,7 @@ const { UptimeKumaServer } = require("../uptime-kuma-server");
|
|||
const Maintenance = require("../model/maintenance");
|
||||
const server = UptimeKumaServer.getInstance();
|
||||
const dayjs = require("dayjs");
|
||||
const utc = require("dayjs/plugin/utc");
|
||||
let timezone = require("dayjs/plugin/timezone");
|
||||
const MaintenanceTimeslot = require("../model/maintenance_timeslot");
|
||||
dayjs.extend(utc);
|
||||
dayjs.extend(timezone);
|
||||
|
||||
/**
|
||||
* Handlers for Maintenance
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue