From 53c03e2609f261793e6e904abbd90e92f395a6cf Mon Sep 17 00:00:00 2001 From: Disha Talreja Date: Thu, 23 Feb 2023 11:57:41 +0530 Subject: [PATCH] Updated: default dateTime format(#85zrnzcpm) --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index f647bb24..655ae6a4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -47,9 +47,9 @@ app.config.globalProperties.$filters = { formatDate(value: any, inFormat?: string, outFormat?: string) { // TODO Make default format configurable and from environment variables if(inFormat){ - return DateTime.fromFormat(value, inFormat).toFormat(outFormat ? outFormat : 'MM-DD-YYYY'); + return DateTime.fromFormat(value, inFormat).toFormat(outFormat ? outFormat : 'MM-dd-yyyy'); } - return DateTime.fromISO(value).toFormat(outFormat ? outFormat : 'MM-DD-YYYY'); + return DateTime.fromISO(value).toFormat(outFormat ? outFormat : 'MM-dd-yyyy'); }, formatUtcDate(value: any, inFormat?: any, outFormat?: string) { // TODO Make default format configurable and from environment variables