diff --git a/package-lock.json b/package-lock.json index 161208af0..0b9454ae5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "uptime-kuma", - "version": "1.18.4", + "version": "1.18.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "uptime-kuma", - "version": "1.18.4", + "version": "1.18.5", "license": "MIT", "dependencies": { "@louislam/sqlite3": "~15.0.6", diff --git a/server/client.js b/server/client.js index 795b3ad48..dcc778df2 100644 --- a/server/client.js +++ b/server/client.js @@ -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"), }); } diff --git a/src/assets/app.scss b/src/assets/app.scss index be324afdf..7eb959315 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss @@ -101,6 +101,11 @@ optgroup { } } +// Override Bootstrap +.btn-group > .btn:hover { + z-index: initial; +} + .btn { padding-left: 20px; padding-right: 20px; diff --git a/src/pages/EditMaintenance.vue b/src/pages/EditMaintenance.vue index 790588d83..242292933 100644 --- a/src/pages/EditMaintenance.vue +++ b/src/pages/EditMaintenance.vue @@ -5,7 +5,7 @@
-
+
@@ -82,7 +82,7 @@

{{ $t("Date and Time") }}

-
⚠️ {{ $t("warningTimezone") }}: {{ $root.info.serverTimezone }}
+
⚠️ {{ $t("warningTimezone") }}: {{ $root.info.serverTimezone }} ({{ $root.info.serverTimezoneOffset }})
diff --git a/src/pages/ManageMaintenance.vue b/src/pages/ManageMaintenance.vue index 5820aadad..725e94b0f 100644 --- a/src/pages/ManageMaintenance.vue +++ b/src/pages/ManageMaintenance.vue @@ -35,21 +35,23 @@
{{ $t("Details") }} - +
+ - + - - {{ $t("Edit") }} - + + {{ $t("Edit") }} + - + +
diff --git a/src/util.js b/src/util.js index ec2d23223..2213d4d0e 100644 --- a/src/util.js +++ b/src/util.js @@ -363,7 +363,6 @@ function utcToISODateTime(input) { return dayjs.utc(input).toISOString(); } exports.utcToISODateTime = utcToISODateTime; -/** /** * For SQL_DATETIME_FORMAT */ diff --git a/src/util.ts b/src/util.ts index 34e0905d9..966383f8f 100644 --- a/src/util.ts +++ b/src/util.ts @@ -409,7 +409,6 @@ export function utcToISODateTime(input : string) { return dayjs.utc(input).toISOString(); } -/** /** * For SQL_DATETIME_FORMAT */