[Alert table] Fix kibana.alert.rule.execution.timstamp timezone and format (#183905)

Related to #182650

## Summary

Fix `kibana.alert.rule.execution.timstamp` timezone and format

|Before|After|
|---|---|

|![image](75bf7e37-14b2-43dd-a6ea-522d17d96df7)|
This commit is contained in:
Maryam Saeidi 2024-05-22 00:22:40 +02:00 committed by GitHub
parent b81225ae7a
commit 6e851a804e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,6 +20,7 @@ import {
ALERT_RULE_NAME,
ALERT_RULE_CATEGORY,
ALERT_START,
ALERT_RULE_EXECUTION_TIMESTAMP,
} from '@kbn/rule-data-utils';
import { isEmpty } from 'lodash';
import type { TimelineNonEcsData } from '@kbn/timelines-plugin/common';
@ -97,6 +98,7 @@ export const getRenderCellValue = ({
return <AlertStatusIndicator alertStatus={value} />;
case TIMESTAMP:
case ALERT_START:
case ALERT_RULE_EXECUTION_TIMESTAMP:
return <TimestampTooltip time={new Date(value ?? '').getTime()} timeUnit="milliseconds" />;
case ALERT_DURATION:
return asDuration(Number(value));