1
0
mirror of https://github.com/hasura/graphql-engine.git synced 2024-12-15 01:12:56 +03:00

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
This commit is contained in:
Varun Choudhary 2023-02-27 20:23:15 +05:30 committed by hasura-bot
parent bbe756dbcc
commit 546902240a

View File

@ -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 => {