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

Fix dbnav time zone bug #25

Merged
merged 3 commits into from
Mar 6, 2025
Merged

Conversation

dabund24
Copy link
Contributor

@dabund24 dabund24 commented Mar 6, 2025

resolves #24

In theory, this introduces a new bug if a delay reaches across the transition from standard time to daylight saving time and vice versa (which is far less tragic than the current situation imao). That's why I decided to test for diverging time zones only in the scenarios where this bug could happen as far as we currently know (only dbnav; first or last leg; walk or transfer) instead of performing the checks somewhere in parseJourneyLeg(). I wasn't able to find this bug for transfers in the wild (yet?) as those function kind of rarely as starting or ending legs, but i guess there is a chance that this bug exists here, too.

@traines-source traines-source merged commit 25cbb28 into public-transport:main Mar 6, 2025
10 checks passed
@traines-source
Copy link
Member

A nice example for a transfer as a starting leg is this: /journeys?departure=2025-05-22T21%3A00%3A00.000%2B01%3A00&from=8000261&to=8700011. For today the issue doesn't occur there, but I think it definitely can't harm to have the fix for transfers as well.

Thanks for your work! (And one strike for cspell :D)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

dbnav / journeys(): incorrect timezone for starting/ending walks [upstream]
2 participants