From b7facbfd3ce9d599ad47f4be0d92ab974e07ea24 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 20 Jun 2022 16:54:37 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1959=20fix=EF=BC=9A=E5=9C=A8=E4=B8=8D?= =?UTF-8?q?=E5=90=8C=E7=9A=84=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E4=B8=8B?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=85=B6=E4=BB=96=E6=97=B6=E9=97=B4=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E4=B8=8B=E4=BD=BF=E7=94=A8=E8=BF=87=E7=9A=84=E6=9C=80?= =?UTF-8?q?=E8=BF=91=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E8=8C=83=E5=9B=B4?= =?UTF-8?q?=E6=97=B6=E5=86=85=E5=AE=B9=E6=98=BE=E7=A4=BA=E6=9C=89=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/timePicker.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/components/common/timePicker.vue b/nezha-fronted/src/components/common/timePicker.vue index 3b8eb33c6..7d9dd74ba 100644 --- a/nezha-fronted/src/components/common/timePicker.vue +++ b/nezha-fronted/src/components/common/timePicker.vue @@ -92,9 +92,9 @@ class="date-range-history-item" @click="historyChange(item)" > - {{ timeFormate(item.start) }} + {{ momentTz(item.start) }} {{ $t("dashboard.panel.to") }} - {{ timeFormate(item.end) }} + {{ momentTz(item.end) }} @@ -340,8 +340,8 @@ export default { } this.isCustom = true this.rangeHistory.unshift({ - start: item[0], - end: item[1] + start: this.momentStrToTimestamp(item[0]), + end: this.momentStrToTimestamp(item[1]) }) localStorage.setItem( 'date-range-history' + this.sign,