diff --git a/src/views/charts/charts/ChartSingleValue.vue b/src/views/charts/charts/ChartSingleValue.vue index 2dcd1290..1b93e6b2 100644 --- a/src/views/charts/charts/ChartSingleValue.vue +++ b/src/views/charts/charts/ChartSingleValue.vue @@ -230,7 +230,6 @@ import { get } from '@/utils/http' import { unitTypes } from '@/utils/constants' import { replaceUrlPlaceholder } from '@/utils/tools' import * as echarts from 'echarts' -import { dateFormatByAppearance } from '@/utils/date-util' import { getOption, getChartColor, diff --git a/src/views/detections/overview/DetectionSecurityEventOverview.vue b/src/views/detections/overview/DetectionSecurityEventOverview.vue index 58344f7b..c05b86d0 100644 --- a/src/views/detections/overview/DetectionSecurityEventOverview.vue +++ b/src/views/detections/overview/DetectionSecurityEventOverview.vue @@ -230,9 +230,7 @@
{{ - dayJs - .tz(getMillisecond(event.startTime)) - .format('YYYY-MM-DD HH:mm:ss') + dateFormatByAppearance(event.startTime) }}
diff --git a/src/views/entityExplorer/search/ExplorerSearch.vue b/src/views/entityExplorer/search/ExplorerSearch.vue index d5e06ea1..5e89895e 100644 --- a/src/views/entityExplorer/search/ExplorerSearch.vue +++ b/src/views/entityExplorer/search/ExplorerSearch.vue @@ -262,7 +262,7 @@ export default { if (sql) { const oldHistory = localStorage.getItem(storageKey.entitySearchHistory) let arr = [] - const newItem = { sql, date: window.$dayJs.tz(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss') } + const newItem = { sql, date: this.dateFormatByAppearance(new Date()) } if (!this.$_.isEmpty(oldHistory)) { const oldArr = JSON.parse(oldHistory) oldArr.unshift(newItem)