Update maintenance tables

This commit is contained in:
Louis Lam
2022-10-11 21:48:43 +08:00
parent dfb75c8afb
commit 39b6725163
5 changed files with 59 additions and 37 deletions

View File

@@ -64,7 +64,7 @@ class Database {
"patch-add-other-auth.sql": { parents: [ "patch-monitor-basic-auth.sql" ] },
"patch-add-radius-monitor.sql": true,
"patch-monitor-add-resend-interval.sql": true,
"patch-maintenance-table.sql": true,
"patch-maintenance-table2.sql": true,
};
/**

View File

@@ -7,7 +7,7 @@ const { UptimeKumaServer } = require("../uptime-kuma-server");
class MaintenanceTimeslot extends BeanModel {
async toPublicJSON() {
const serverTimezoneOffset = await UptimeKumaServer.getInstance().getTimezoneOffset();
const serverTimezoneOffset = UptimeKumaServer.getInstance().getTimezoneOffset();
const obj = {
id: this.id,

View File

@@ -204,7 +204,7 @@ class UptimeKumaServer {
}
}
async getTimezoneOffset() {
getTimezoneOffset() {
return dayjs().format("Z");
}