Use Moment Date Adapter instead of Native one

This commit is contained in:
Sebastian 2023-10-06 08:50:18 +02:00
parent 1c4b0f73b6
commit 1b52ae9da8

View File

@ -46,6 +46,7 @@ import {MatCheckboxModule} from "@angular/material/checkbox";
import {MatCardModule} from "@angular/material/card"; import {MatCardModule} from "@angular/material/card";
import {MatListModule} from "@angular/material/list"; import {MatListModule} from "@angular/material/list";
import {DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MatNativeDateModule} from "@angular/material/core"; import {DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MatNativeDateModule} from "@angular/material/core";
import {MatMomentDateModule, MomentDateModule} from "@angular/material-moment-adapter";
@NgModule({ @NgModule({
declarations: [ declarations: [
@ -93,7 +94,7 @@ import {DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MatNativeDateModule} fro
MatDatepickerModule, MatDatepickerModule,
MatInputModule, MatInputModule,
MatDatepickerModule, MatDatepickerModule,
MatNativeDateModule, MatMomentDateModule,
FormsModule FormsModule
], ],
providers: [ providers: [