summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhangyu <[email protected]>2022-10-27 16:25:28 +0800
committerzhangyu <[email protected]>2022-10-27 16:25:28 +0800
commitd3f53630d42f38593da0034432a3bc606c3f60c8 (patch)
treeed54bd12415b60aa13dd3d24ee83e71186148195
parent103a14b018d9ad44c2c8abe6f4c746d98015e324 (diff)
fix:修改 Appearance页面 时间偏移量显示不正确的问题rel-22.10.06
-rw-r--r--nezha-fronted/src/components/page/config/basic.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/nezha-fronted/src/components/page/config/basic.vue b/nezha-fronted/src/components/page/config/basic.vue
index 2eb4db5dd..68a7357a9 100644
--- a/nezha-fronted/src/components/page/config/basic.vue
+++ b/nezha-fronted/src/components/page/config/basic.vue
@@ -208,7 +208,7 @@ export default {
this.basic.lnglat = lnglat
},
timezoneOptionHandler: function (offset) {
- const offsetHour = (offset / 1000 / 60 / 60).toFixed(0)
+ const offsetHour = Math.floor((offset / 1000 / 60 / 60))
const offsetMinute = offset % (1000 * 60 * 60) / (1000 * 60)