mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-11 04:59:05 +08:00
Init server timezone
This commit is contained in:
@@ -2,6 +2,7 @@ import { io } from "socket.io-client";
|
||||
import { useToast } from "vue-toastification";
|
||||
import jwtDecode from "jwt-decode";
|
||||
import Favico from "favico.js";
|
||||
import dayjs from "dayjs";
|
||||
const toast = useToast();
|
||||
|
||||
let socket;
|
||||
@@ -271,6 +272,10 @@ export default {
|
||||
socket.on("cloudflared_message", (res) => this.cloudflared.message = res);
|
||||
socket.on("cloudflared_errorMessage", (res) => this.cloudflared.errorMessage = res);
|
||||
socket.on("cloudflared_token", (res) => this.cloudflared.cloudflareTunnelToken = res);
|
||||
|
||||
socket.on("initServerTimezone", () => {
|
||||
socket.emit("initServerTimezone", dayjs.tz.guess());
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user