fix dates
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user