Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

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

Mauricedc519b3ea79d
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);