diff --git a/src/frontend/app/app-material.module.ts b/src/frontend/app/app-material.module.ts index 39fae71356bce2cf7e8c618427cfd46ec9875aeb..1cc8daea94bed0c87d6eb211bea0b0f01daf2e91 100755 --- a/src/frontend/app/app-material.module.ts +++ b/src/frontend/app/app-material.module.ts @@ -20,7 +20,8 @@ export class AppDateAdapter extends NativeDateAdapter { let year = date.getFullYear(); return this._to2digit(day) + '/' + this._to2digit(month) + '/' + year; } else { - return date.toDateString(); + const options = { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric' }; + return date.toLocaleDateString('fr-FR', options); } } @@ -157,9 +158,9 @@ import { getFrenchPaginatorIntl } from './french-paginator-intl'; ], providers: [ { provide: MatPaginatorIntl, useValue: getFrenchPaginatorIntl() }, + { provide: MAT_DATE_LOCALE, useValue: 'fr-FR' }, { provide: DateAdapter, useClass: AppDateAdapter }, { provide: MAT_DATE_FORMATS, useValue: APP_DATE_FORMATS }, - { provide: MAT_DATE_LOCALE, useValue: 'fr-FR' }, ] }) export class AppMaterialModule { } \ No newline at end of file