juliuste / api.direkt.bahn.guru

Backend for direkt.bahn.guru
https://api.direkt.bahn.guru
ISC License
57 stars 7 forks source link

Travel durations in Portugal & the UK have 1 h offset #4

Open JonasBchrt opened 2 years ago

JonasBchrt commented 2 years ago

Not sure if this is in the scope of this project, but in countries with a timezone west of Germany (Portugal, UK), the timezone offset seems to be added to the travel durations, e.g., 65 min instead of 5 min. (Example: https://direkt.bahn.guru/?origin=9400674). However, this seems to be a mismatch between the timezones of departures and arrivals coming from db-hafas. So, might be a bit hacky to fix this here. (The timezone of my browser is GMT, but I don't think this matters.) image