From 546902240a66e576755b442de3d224fa7fb2b967 Mon Sep 17 00:00:00 2001 From: Varun Choudhary <68095256+Varun-Choudhary@users.noreply.github.com> Date: Mon, 27 Feb 2023 20:23:15 +0530 Subject: [PATCH] console: show year in the date column while displaying event triggers, cron triggers and scheduled triggers PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8128 GitOrigin-RevId: 4522406f5e79dbb352778fa6849c284b813a0386 --- .../legacy-ce/src/lib/components/Common/utils/jsUtils.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/libs/console/legacy-ce/src/lib/components/Common/utils/jsUtils.tsx b/frontend/libs/console/legacy-ce/src/lib/components/Common/utils/jsUtils.tsx index a3f74bad503..64d6917aa6d 100644 --- a/frontend/libs/console/legacy-ce/src/lib/components/Common/utils/jsUtils.tsx +++ b/frontend/libs/console/legacy-ce/src/lib/components/Common/utils/jsUtils.tsx @@ -362,7 +362,9 @@ export const getCurrTimeForFileName = () => { }; export const convertDateTimeToLocale = (dateTime: string | Date | number) => { - return moment(dateTime, moment.ISO_8601).format('ddd, MMM Do HH:mm:ss Z'); + return moment(dateTime, moment.ISO_8601).format( + 'ddd, MMM, yyyy, Do HH:mm:ss Z' + ); }; export const isConsoleError = (x: any): x is Error => {