How to update UTC to local time in alerts and reports logs? #31470
Replies: 1 comment 2 replies
-
To update UTC to local time in alerts and reports logs, you can modify the {
Cell: ({
row: {
original: { scheduled_dttm: scheduledDttm },
},
}: any) =>
moment.utc(new Date(scheduledDttm)).local().format('YYYY-MM-DD hh:mm:ss a'),
accessor: 'scheduled_dttm',
Header: t('Scheduled at (Local)'),
},
{
Cell: ({
row: {
original: { start_dttm: startDttm },
},
}: any) =>
moment.utc(new Date(startDttm)).local().format('YYYY-MM-DD hh:mm:ss a'),
Header: t('Start at (Local)'),
accessor: 'start_dttm',
}, This change will ensure that the timestamps are displayed in the local time zone instead of UTC [1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
How to update UTC to local time in alerts and reports logs?
Beta Was this translation helpful? Give feedback.
All reactions