fix(alerts and reports): Unify timestamp format on execution log view (#13718)

* Unify timestamp format on execution log view

* Fix lint
This commit is contained in:
Jack Fragassi 2021-03-29 13:30:19 -07:00 committed by GitHub
parent 467848d8f7
commit 33f7845010
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -96,16 +96,22 @@ function ExecutionLog({ addDangerToast, isReportEnabled }: ExecutionLogProps) {
disableSortBy: true,
},
{
Cell: ({
row: {
original: { scheduled_dttm: scheduledDttm },
},
}: any) =>
moment(new Date(scheduledDttm)).format('YYYY-MM-DD hh:mm:ss a'),
accessor: 'scheduled_dttm',
Header: t('Scheduled at'),
Header: t('Scheduled at (UTC)'),
},
{
Cell: ({
row: {
original: { start_dttm: startDttm },
},
}: any) => moment(new Date(startDttm)).format('MM/DD/YYYY hh:mm:ss a'),
Header: t('Start at'),
}: any) => moment(new Date(startDttm)).format('YYYY-MM-DD hh:mm:ss a'),
Header: t('Start at (UTC)'),
accessor: 'start_dttm',
},
{