From bd2f982c489b15ce1165c051fdedf35af979f784 Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Tue, 8 Sep 2026 17:06:51 +0200 Subject: Migrate date handling from Date to Temporal API Routine scheduling, health series, service stamps, session expiry, and date formatting move to native Temporal (Instant / ZonedDateTime in UTC), with ISO strings kept at DB and chart boundaries. Ambient types in src/temporal-ambient.d.ts cover the native runtime; no polyfill. Observable behavior and stored formats are unchanged. --- src/lib/server/services/routine-actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/server/services/routine-actions.ts') diff --git a/src/lib/server/services/routine-actions.ts b/src/lib/server/services/routine-actions.ts index b546ec7..64d0a1b 100644 --- a/src/lib/server/services/routine-actions.ts +++ b/src/lib/server/services/routine-actions.ts @@ -68,7 +68,7 @@ export async function completeRoutineAction(data: FormData, routineId: number) { await complete( routineId, parseFormString(data.get('note')), - new Date().toISOString(), + Temporal.Now.instant().toString({ smallestUnit: 'millisecond' }), ); } catch { return fail(400, { error: 'Routine introuvable' }); -- cgit v1.3