From 2e972788bac37d3e4d127a7045b0206f34349f14 Mon Sep 17 00:00:00 2001 From: Sebastian-Ion TINCU <Sebastian-Ion.TINCU@ext.ec.europa.eu> Date: Mon, 14 Oct 2024 13:24:11 +0200 Subject: [PATCH] Applied suggestion --- smp-angular/src/app/common/utils/date-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smp-angular/src/app/common/utils/date-utils.ts b/smp-angular/src/app/common/utils/date-utils.ts index 1f9e571e2..f1e51eee2 100644 --- a/smp-angular/src/app/common/utils/date-utils.ts +++ b/smp-angular/src/app/common/utils/date-utils.ts @@ -23,7 +23,7 @@ export default class DateUtils { * @param withZone - flag to include the time zone in the formatted date time string */ static getDateTimeFormatForLocal(locale: string, withSeconds: boolean = true, withZone: boolean = false): string { - locale = locale ? locale : this.DEFAULT_LOCALE; + locale = locale || this.DEFAULT_LOCALE; let format: string = getLocaleDateTimeFormat(locale, FormatWidth.Short); let fullTime = getLocaleTimeFormat(locale, withSeconds ? FormatWidth.Medium : FormatWidth.Short); let fullDate = getLocaleDateFormat(locale, FormatWidth.Short); -- GitLab