diff options
Diffstat (limited to 'src/frontend/app/routes/estimates-$id.tsx')
| -rw-r--r-- | src/frontend/app/routes/estimates-$id.tsx | 4 |
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", |
