diff --git a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue index 24ce8145b..f84854a4e 100644 --- a/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue +++ b/nezha-fronted/src/components/page/dashboard/explore/exploreItem.vue @@ -134,7 +134,7 @@ show-overflow-tooltip > diff --git a/nezha-fronted/src/main.js b/nezha-fronted/src/main.js index 579138526..17c4111c8 100644 --- a/nezha-fronted/src/main.js +++ b/nezha-fronted/src/main.js @@ -104,7 +104,7 @@ Vue.mixin({ }, utcTimeToTimezoneStr: function (time) { if (time) { - return bus.timeFormate(time, localStorage.getItem('nz-default-dateFormat') || 'YYYY-MM-DD HH:mm:ss') + return bus.timeFormate(bus.UTCTimeToConfigTimezone(time), localStorage.getItem('nz-default-dateFormat') || 'YYYY-MM-DD HH:mm:ss') } else { return '-' } @@ -135,6 +135,9 @@ Vue.mixin({ return '-' } }, + timeFormate (time) { + return bus.timeFormate(time) + }, hasButton (code) { return hasButton(this.$store.getters.buttonList, code) },