Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show trains in local time of station or browser instead of UTC+01/UTC+02 (MEZ) #1692

Closed
rugk opened this issue Jun 25, 2023 · 0 comments · Fixed by #1719
Closed

Show trains in local time of station or browser instead of UTC+01/UTC+02 (MEZ) #1692

rugk opened this issue Jun 25, 2023 · 0 comments · Fixed by #1719
Labels
enhancement New feature or request timezoning is hard

Comments

@rugk
Copy link
Contributor

rugk commented Jun 25, 2023

Is your feature request related to a problem? Please describe.
So I wanted to checkin to a train in Glasgow as I am there. This is UTC+01 (British summer time), further called the local time, apparently.

So according to local time the train starts 13:35.
However, Trawelling uses the German/Berlin time (UTC+02 currently as German summer time), so in Traewelling the train starts at 14:35.

grafik
https://traewelling.de/status/1153504

Describe the solution you'd like

Either:

  • always evaluate the local timezone of the browser and adjust all times to it (I've shown that the time zone is correct in my screenshot)
  • or do that depending on the start station you select (as you are very obviously there it is the time that matters for you)
  • or do some of that, but only show a warning – e.g. show a warning when the browser time zone does not match Traewellings time zone – that you may be traewelling in a different time zone and may adjust/calculate the correct time on your head

Describe alternatives you've considered
Dunno, listed above. IMHO what matters when searching trains is the local time I am taking the train as that is what I have in my head and is shown everywhere.
Leaving it as it is may confuse people. I don#t think most people think as technical as remembering that Traewelling (and the Deutsche Bahn API it is fed of) are located in Germany and you would have to use these times. And even if so, there are many ideas to make it obvious a time zone adjustment has been done, e.g.:

  • show the time zone explicitly near the time, e.g. "13:35 (UTC+01)", – a tooltip may show "British summertime" even or
  • show a warning or information message somewhere that time has been adjusted

Additional context
Found #6 being related.

If you need a good JS DateTime library I can recommend Luxon as it is a wrapper around the JS DateTime object.

@rugk rugk added the enhancement New feature or request label Jun 25, 2023
@rugk rugk changed the title Show trains in local time of station/ or browser instead of UTC+01/UTC+02 (MEZ) Show trains in local time of station or browser instead of UTC+01/UTC+02 (MEZ) Jun 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request timezoning is hard
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants