From 33f7845010820e16aa505078d0fffa6afe1cf4f7 Mon Sep 17 00:00:00 2001 From: Jack Fragassi Date: Mon, 29 Mar 2021 13:30:19 -0700 Subject: [PATCH] fix(alerts and reports): Unify timestamp format on execution log view (#13718) * Unify timestamp format on execution log view * Fix lint --- .../src/views/CRUD/alert/ExecutionLog.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/superset-frontend/src/views/CRUD/alert/ExecutionLog.tsx b/superset-frontend/src/views/CRUD/alert/ExecutionLog.tsx index 99f9b9555..185266efe 100644 --- a/superset-frontend/src/views/CRUD/alert/ExecutionLog.tsx +++ b/superset-frontend/src/views/CRUD/alert/ExecutionLog.tsx @@ -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', }, {