mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 06:29:57 +08:00
Update maintenance tables
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
/**
|
||||
|
@@ -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,
|
||||
|
@@ -204,7 +204,7 @@ class UptimeKumaServer {
|
||||
}
|
||||
}
|
||||
|
||||
async getTimezoneOffset() {
|
||||
getTimezoneOffset() {
|
||||
return dayjs().format("Z");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user