From a34c11aa186dc389f071ecdc49d2219822f4d049 Mon Sep 17 00:00:00 2001 From: wangwenrui Date: Wed, 9 Sep 2020 09:59:50 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-391=20fix:=E4=BF=AE=E5=A4=8D=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=88=B7=E6=96=B0=E5=90=8E=20=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=9A=84=E6=97=B6=E9=97=B4=E5=8F=98=E5=8C=96?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/pickTime.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/common/pickTime.vue b/nezha-fronted/src/components/common/pickTime.vue index 955f48c17..ffd76b29a 100644 --- a/nezha-fronted/src/components/common/pickTime.vue +++ b/nezha-fronted/src/components/common/pickTime.vue @@ -73,8 +73,8 @@ this.interval = val; if (val && val.value != -1) { const start = new Date(this.searchTime[1]); - const now = new Date(); - const interval = Math.floor((now.getTime() - start.getTime()) / 1000); //计算当前结束时间到现在的间隔(秒) + const now = bus.getOffsetTimezoneData(); + const interval = Math.floor((now - start.getTime()) / 1000); //计算当前结束时间到现在的间隔(秒) if (interval >= 60) { //如果结束时间到现在超过30s,则 this.getIntervalData(interval); }