mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-02 19:46:26 -04:00
WIP
This commit is contained in:
parent
2271ac4a5a
commit
e07aa982c3
10 changed files with 152 additions and 33 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue