We have moved from dd-MMM-yyyy to ISO Date.

This commit is contained in:
2026-09-02 03:38:49 +00:00
parent 6cf42d3641
commit 0a9675f270
45 changed files with 141 additions and 613 deletions
+4
View File
@@ -26,6 +26,7 @@ import { MatTableModule } from '@angular/material/table';
import { MatToolbarModule } from '@angular/material/toolbar';
import { BrowserModule } from '@angular/platform-browser';
import { provideRouter, withComponentInputBinding, withRouterConfig } from '@angular/router';
import { Settings } from 'luxon';
import { dateFormat } from './app.environment';
import { routes } from './app.routes';
@@ -37,6 +38,8 @@ import { httpErrorInterceptor } from './core/http-error.interceptor';
import { jwtInterceptor } from './core/jwt.interceptor';
import { refreshInterceptor } from './core/refresh.interceptor';
Settings.defaultLocale = 'en-US';
export const appConfig: ApplicationConfig = {
providers: [
importProvidersFrom(
@@ -76,6 +79,7 @@ export const appConfig: ApplicationConfig = {
withComponentInputBinding(),
),
{ provide: ErrorHandler, useClass: GlobalErrorHandler },
{ provide: MAT_DATE_LOCALE, useValue: 'en-US' },
{ provide: DateAdapter, useClass: LuxonDateAdapter, deps: [MAT_DATE_LOCALE] },
{ provide: MAT_DATE_FORMATS, useValue: dateFormat },
{ provide: MAT_SNACK_BAR_DEFAULT_OPTIONS, useValue: { duration: 3000 } },