Implement generateTimeslot() for recurring interval type

This commit is contained in:
Louis Lam 2022-10-12 17:02:16 +08:00
parent 8cc3e4b7c1
commit 2faf866e9e
6 changed files with 87 additions and 24 deletions

View file

@ -9,6 +9,7 @@ console.log("Welcome to Uptime Kuma");
const dayjs = require("dayjs");
dayjs.extend(require("dayjs/plugin/utc"));
dayjs.extend(require("dayjs/plugin/timezone"));
dayjs.extend(require("dayjs/plugin/customParseFormat"));
// Check Node.js Version
const nodeVersion = parseInt(process.versions.node.split(".")[0]);
@ -1110,6 +1111,7 @@ let needSetup = false;
});
sendInfo(socket);
server.sendMaintenanceList(socket);
} catch (e) {
callback({