From df4ea723b3f8dd7232d966a62437f8dac516db29 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sun, 2 Feb 2025 20:54:22 +0300 Subject: [PATCH] feat: add date adapter provider --- src/app/app.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' }] };