From ac07f628eb98e503cc5e3231f78ed203f500484d Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Thu, 20 Aug 2026 19:47:25 +0200 Subject: [PATCH] Migrate services to Angular 22 @Service() --- apps/client/src/app/adapter/custom-date-adapter.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/client/src/app/adapter/custom-date-adapter.ts b/apps/client/src/app/adapter/custom-date-adapter.ts index a2700f4ed..5383d0ca2 100644 --- a/apps/client/src/app/adapter/custom-date-adapter.ts +++ b/apps/client/src/app/adapter/custom-date-adapter.ts @@ -1,9 +1,10 @@ import { getDateFormatString } from '@ghostfolio/common/helper'; -import { inject } from '@angular/core'; +import { inject, Service } from '@angular/core'; import { MAT_DATE_LOCALE, NativeDateAdapter } from '@angular/material/core'; import { addYears, format, getYear, parse } from 'date-fns'; +@Service({ autoProvided: false }) export class CustomDateAdapter extends NativeDateAdapter { public override locale = inject(MAT_DATE_LOCALE);