traewelling icon indicating copy to clipboard operation
traewelling copied to clipboard

Time zones (sorry): Times are off for some stations abroad

Open TudbuT opened this issue 1 year ago • 4 comments

Describe the bug

When trying to check in at stations like Surbiton, London, there is one of these two things happening:

a) upon selecting the train, departure times for future stations are off by +1h. b) during selecting the train, departure times are off by -1h.

It might be relevant that I have found cases where departure time would be e.g. 22:32 in one screen, and then 23:31 in the other, for the same station. (I found out because in some apps, the dep. station is also shown despite being the departure station, due to the time shift)

Träwelldroid: Screenshot_20241114_223755_Trwelldroid Screenshot_20241114_223800_Trwelldroid

Träwelling web: Screenshot_20241114_223713_Firefox Nightly Screenshot_20241114_223722_Firefox Nightly

This is irrespective of device timezone. I am reporting this on behalf of a friend who is using the Eu/London timezone, while I am in the Eu/Berlin TZ.

Steps to reproduce

  1. Go to Surbiton in Träwelling
  2. Select a train (e.g. at 22:32)
  3. The destination selection menu contains times one hour ahead of what was selected.

Browser console logs

No response

Browser

No response

TudbuT avatar Nov 14 '24 21:11 TudbuT

Hey,

we have the same problem with Lokbuch. The /station/{id}/departures endpoint uses timestamps within the UTC+01:00 timezone Bildschirmfoto 2024-11-16 um 10 50 01

while the /trains/trip endpoint is using timestamps in UTC+00:00 for the same train without shifting the time by one hour. Bildschirmfoto 2024-11-16 um 10 53 46

This causes an error in the API implementation of our application as we compare the timestamp to find the correct stop in the case of circular lines. image

marhei avatar Nov 16 '24 09:11 marhei

Related to this, I'm finding that the workaround of requesting one hour previous is not showing certain trains.

For example, if I try to check in for the 04:41 train from Folkestone West, selecting 03:40 (or 03:41) is not showing me that train. Experiencing this with anything before 05:00 (for 06:00 departures).

image

TheJRB avatar Nov 23 '24 15:11 TheJRB

Just for my 2 cents, I noticed this issue started occuring when the clocks changed in October, exactly day of

Kya-ra avatar Dec 19 '24 16:12 Kya-ra

As far as I can tell this is still an issue, and is occurring for every station in the UK that I've been to The timezone change for DST hasn't affected whether this happens.

Every time I have to go back an hour to get to my train, and it messes with a lot of the timings :/

ExoSkye avatar Apr 05 '25 07:04 ExoSkye