diff --git a/src/app/app.config.ts b/src/app/app.config.ts index a9a6504..e25b348 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,11 +1,10 @@ import {ApplicationConfig, LOCALE_ID} from '@angular/core'; import {provideRouter} from '@angular/router'; - import {routes} from './app.routes'; import {provideAnimationsAsync} from '@angular/platform-browser/animations/async'; import {provideHttpClient} from "@angular/common/http"; import {provideToastr} from "ngx-toastr"; -import {MAT_DATE_LOCALE} from "@angular/material/core"; +import {MAT_DATE_LOCALE, provideNativeDateAdapter} from "@angular/material/core"; export const appConfig: ApplicationConfig = { providers: [ @@ -24,6 +23,7 @@ export const appConfig: ApplicationConfig = { autoDismiss: true, maxOpened: 5 }), + provideNativeDateAdapter(), { provide: LOCALE_ID, useValue: 'ru' }, { provide: MAT_DATE_LOCALE, useValue: 'ru' }] };