summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlikexuan <[email protected]>2022-08-02 11:23:29 +0800
committerlikexuan <[email protected]>2022-08-02 11:23:29 +0800
commita2fb6dcbbe985c99e614d6ede396e9d8b3ff974c (patch)
tree19b23cd4bdf4f5e8ec70edcc7a7fa6b63cb66a0d
parent0310aea90abdfbbd76d8d90d2ae2e5923f14e4ad (diff)
parent528c681923301d29b6fe7cd8c9e37e04800bba6f (diff)
Merge branch 'dev-3.4' of https://git.mesalab.cn/nezha/nezha-fronted into dev-3.4
-rw-r--r--nezha-fronted/src/components/page/dashboard/overview/chart.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/nezha-fronted/src/components/page/dashboard/overview/chart.vue b/nezha-fronted/src/components/page/dashboard/overview/chart.vue
index 998daa544..d52fc8b89 100644
--- a/nezha-fronted/src/components/page/dashboard/overview/chart.vue
+++ b/nezha-fronted/src/components/page/dashboard/overview/chart.vue
@@ -389,7 +389,7 @@ export default {
const hour = tData.getHours() > 9 ? tData.getHours() : '0' + tData.getHours()
const minute = tData.getMinutes() > 9 ? tData.getMinutes() : '0' + tData.getMinutes()
const dateFormatStr = this.timeFormatMain.split(' ')[0]
- const diffSec = (this.timezoneToUtcTime(this.timeRange[1]) - this.timezoneToUtcTime(this.timeRange[0]))
+ const diffSec = (this.momentStrToTimestamp(this.timeRange[1]) - this.momentStrToTimestamp(this.timeRange[0]))
const secOneDay = 24 * 60 * 60 * 1000// 1天的毫秒数
let str = ''
if (dateFormatStr === 'DD/MM/YYYY') {