From 7e189acd71509c9b32d00d7b6c549da4bcaa392b Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 24 Oct 2026 09:15:56 +0200 Subject: [PATCH] fix(journey): a journey's created_at is an epoch number --- client/src/pages/journey/journeyModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/journey/journeyModel.ts b/client/src/pages/journey/journeyModel.ts index 0c1b26b5c..27138f66f 100644 --- a/client/src/pages/journey/journeyModel.ts +++ b/client/src/pages/journey/journeyModel.ts @@ -2,7 +2,7 @@ export function journeyYearLabel(journey: { trip_date_min?: string | null; trip_date_max?: string | null; - created_at?: string | null; + created_at?: string | number | null; }): string { // The dates are calendar dates, so the year is read from the text, not through a Date in some zone. const from = journey.trip_date_min?.slice(0, 4);