fix(journey): a journey's created_at is an epoch number

This commit is contained in:
Maurice
2026-10-24 09:15:56 +02:00
parent d33b3a81b1
commit 7e189acd71
+1 -1
View File
@@ -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);