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,