mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-24 07:53:09 +00:00
fix(journey): a journey's created_at is an epoch number
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user