mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-24 15:25:36 -04:00
Add info.serverTimezoneOffset and improve some styles
This commit is contained in:
parent
f6bbd1ca67
commit
2271ac4a5a
7 changed files with 25 additions and 18 deletions
|
@ -8,6 +8,7 @@ const server = UptimeKumaServer.getInstance();
|
|||
const io = server.io;
|
||||
const { setting } = require("./util-server");
|
||||
const checkVersion = require("./check-version");
|
||||
const dayjs = require("dayjs");
|
||||
|
||||
/**
|
||||
* Send list of notification providers to client
|
||||
|
@ -124,6 +125,7 @@ async function sendInfo(socket) {
|
|||
latestVersion: checkVersion.latestVersion,
|
||||
primaryBaseURL: await setting("primaryBaseURL"),
|
||||
serverTimezone: await server.getTimezone(),
|
||||
serverTimezoneOffset: dayjs().format("Z"),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue