mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-07 17:01:23 +08:00
WIP
This commit is contained in:
@@ -204,6 +204,10 @@ class UptimeKumaServer {
|
||||
}
|
||||
}
|
||||
|
||||
async getTimezoneOffset() {
|
||||
return dayjs().format("Z");
|
||||
}
|
||||
|
||||
async setTimezone(timezone) {
|
||||
await Settings.set("serverTimezone", timezone, "general");
|
||||
process.env.TZ = timezone;
|
||||
|
Reference in New Issue
Block a user