underlx / underlx

Unofficial Lisbon Metro Android app. It is kind of a client for https://github.com/underlx/disturbancesmlx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Schedules: open times computed wrong on the day that DST ends

gbl08ma opened this issue · comments

image

yesterdayPassed is 25 hours (because of the "repetition" of the period between 1 am and 2 am), which leads the openYesterday condition to be false when it should be true.
In practice, the app says the network closed at 0:00 of the (service) day when DST ends, when it should say 1:00.
Note that yesterdayPassed is correct, indeed 25 hours have passed since the start of the day. However, since 06:30 (when the network/line/whatever opened), only 18h30m have passed as usual. We should probably be using the schedule's start time as the basis for the computation, and not midnight.