From 5b93eb319815846efa072e2fddd4c867ec112c1a Mon Sep 17 00:00:00 2001 From: Heng Qian Date: Wed, 2 Oct 2024 13:32:16 +0800 Subject: [PATCH] BugFix: [Alert Summary]change the format configuration corresponds to the time value change Signed-off-by: Heng Qian --- public/pages/Dashboard/utils/tableUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/pages/Dashboard/utils/tableUtils.js b/public/pages/Dashboard/utils/tableUtils.js index cb5ef97f..08351946 100644 --- a/public/pages/Dashboard/utils/tableUtils.js +++ b/public/pages/Dashboard/utils/tableUtils.js @@ -188,8 +188,8 @@ export const alertColumns = ( query = query.replaceAll('{{period_end}}', alert.start_time); const alertStartTime = moment.utc(alert.start_time).format('YYYY-MM-DDTHH:mm:ss'); dsl = dsl.replaceAll('{{period_end}}', alertStartTime); - // as we changed the format, remove it - dsl = dsl.replaceAll('"format":"epoch_millis",', ''); + // as we changed the format of time value, need to change the format configuration as well. + dsl = dsl.replaceAll('"format":"epoch_millis",', '"format":"strict_date_optional_time",'); monitorDefinitionStr = monitorDefinitionStr.replaceAll( '{{period_end}}', alertStartTime