date fixes

This commit is contained in:
2021-09-10 13:35:12 +02:00
parent 2a23d88dd9
commit 412e2b61f3
3 changed files with 20 additions and 1 deletions

View File

@ -45,6 +45,7 @@ import { FeeDetailsComponent } from './fee-details/fee-details.component';
import { MatExpansionModule } from '@angular/material/expansion';
import { AccountComponent } from './account/account.component';
import { NoteComponent } from './note/note.component'
import { MatMomentDateModule, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter'
registerLocaleData(localeDe)
@ -95,11 +96,14 @@ registerLocaleData(localeDe)
MatNativeDateModule,
MatExpansionModule
],
exports: [
MatMomentDateModule
],
providers: [
{ provide: HTTP_INTERCEPTORS, useClass: ErrorHandlerInterceptor, multi: true },
{ provide: HTTP_INTERCEPTORS, useClass: AuthHandlerInterceptor, multi: true },
{ provide: LOCALE_ID, useValue: 'de' },
MatNativeDateModule
{ provide: MAT_MOMENT_DATE_ADAPTER_OPTIONS, useValue: { useUtc: true } }
],
bootstrap: [AppComponent]
})