From ff6c4d81220ca6eddfa5a343f8492359d715a8a4 Mon Sep 17 00:00:00 2001 From: Nessar Date: Mon, 19 Oct 2026 14:06:49 +0200 Subject: [PATCH] fix(calendar): mark today and past days from the Europe/Paris date The today marker and past styling used the device's local date while the default planning horizon starts on the Paris date, so outside Paris time near midnight the horizon's first day was not marked as today (CI in UTC failed nightly). project() now takes an injectable now, derives today once with planningDateInParis and returns it; calendar-month styles a day as past when its date key is before that today. Delete DateCacheService, monthsInAYearFromNow() and the default year of getHolidays(), whose only remaining callers were their own specs. Refs #301 Co-Authored-By: Claude Opus 5.5 --- .../calendar-month/calendar-month.html | 2 +- .../calendar-month/calendar-month.spec.ts | 17 +++ .../calendar-month/calendar-month.ts | 10 +- .../calendar-year/calendar-year.html | 1 + src/app/services/calendar-service.spec.ts | 43 +++++-- src/app/services/calendar-service.ts | 37 ++---- src/app/services/date-cache.service.spec.ts | 63 ----------- src/app/services/date-cache.service.ts | 105 ------------------ 8 files changed, 61 insertions(+), 217 deletions(-) delete mode 100644 src/app/services/date-cache.service.spec.ts delete mode 100644 src/app/services/date-cache.service.ts diff --git a/src/app/components/calendar-month/calendar-month.html b/src/app/components/calendar-month/calendar-month.html index d057ded..54cd033 100644 --- a/src/app/components/calendar-month/calendar-month.html +++ b/src/app/components/calendar-month/calendar-month.html @@ -34,7 +34,7 @@