From 133db456a4bd069daecb60b3ec6fa147868493a3 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Tue, 18 Nov 2025 00:27:51 +0100 Subject: Handle GTFS times exceeding 24 hours for night services (#98) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: arielcostas <94913521+arielcostas@users.noreply.github.com> Co-authored-by: Ariel Costas Guerrero --- src/frontend/app/routes/estimates-$id.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/frontend/app/routes/estimates-$id.tsx') diff --git a/src/frontend/app/routes/estimates-$id.tsx b/src/frontend/app/routes/estimates-$id.tsx index e4006ef..74f24e6 100644 --- a/src/frontend/app/routes/estimates-$id.tsx +++ b/src/frontend/app/routes/estimates-$id.tsx @@ -65,9 +65,9 @@ const loadTimetableData = async ( throw new Error("Timetable not available for this region"); } - const today = new Date().toISOString().split("T")[0]; // YYYY-MM-DD format + // Use "today" to let server determine date based on Europe/Madrid timezone const resp = await fetch( - `${regionConfig.timetableEndpoint}?date=${today}&stopId=${stopId}`, + `${regionConfig.timetableEndpoint}?date=today&stopId=${stopId}`, { headers: { Accept: "application/json", -- cgit v1.3