aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/routes/estimates-$id.tsx
diff options
context:
space:
mode:
authorCopilot <198982749+Copilot@users.noreply.github.com>2025-11-18 00:27:51 +0100
committerGitHub <noreply@github.com>2025-11-18 00:27:51 +0100
commit133db456a4bd069daecb60b3ec6fa147868493a3 (patch)
tree23c3ec3aea66a0012c00b2456490ebc0eedd77fb /src/frontend/app/routes/estimates-$id.tsx
parent276e73412abef28c222c52a84334d49f5e414f3c (diff)
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 <ariel@costas.dev>
Diffstat (limited to 'src/frontend/app/routes/estimates-$id.tsx')
-rw-r--r--src/frontend/app/routes/estimates-$id.tsx4
1 files changed, 2 insertions, 2 deletions
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",