fix dates

This commit is contained in:
_Bastler
2021-11-30 12:24:26 +01:00
parent 5350e45ce6
commit 8900b576a2
14 changed files with 31 additions and 32 deletions
+2 -2
View File
@@ -153,14 +153,14 @@ export class XhrInterceptor implements HttpInterceptor {
provide: NgxMatDateAdapter,
useClass: NgxMatMomentAdapter,
useFactory: (i18n: I18nService) => {
return new NgxMatMomentAdapter(i18n.getLocale());
return new NgxMatMomentAdapter(i18n.getLocale(), { strict: true });
}, deps: [ I18nService ]
}, {
provide: NGX_MAT_DATE_FORMATS, useFactory: (i18n: I18nService) => {
const datetimeformat = i18n.get('format.datetime', []);
return {
parse: {
dateInput: "l, LTS"
dateInput: datetimeformat
},
display: {
dateInput: datetimeformat,