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

time zone #16

Open
pietercolpaert opened this issue Nov 9, 2015 · 7 comments
Open

time zone #16

pietercolpaert opened this issue Nov 9, 2015 · 7 comments

Comments

@pietercolpaert
Copy link
Member

Make sure that timezone is configurable or readable from the feed info

@pietercolpaert
Copy link
Member Author

Right now, GTFS2LC always takes the system’s locale. If you want to parse a GTFS file, people should have the right locale timezone set on their system.

@derhuerst
Copy link
Contributor

Heads up! GTFS Time values are not relative to midnight, but to noon - 12h.

gtfs2lc currently just adds the time to midnight. AFAICT, this will fail during DST <-> standard time shifts.

@derhuerst
Copy link
Contributor

Make sure that timezone is configurable or readable from the feed info

Reading it from stops.stop_timezone & agency.agency_timezone would be the spec-compliant mechanism.

@pietercolpaert
Copy link
Member Author

If it were a string concatenation it would have been problematic indeed, but it isn't. We took this into account!

@derhuerst
Copy link
Contributor

If it were a string concatenation it would have been problematic indeed, but it isn't. We took this into account!

Are you sure? Because the code doesn't look like it.

I couldn't verify that it works because I failed to get gtfs2lc running, because of #113 and other issues.

@pietercolpaert
Copy link
Member Author

Yes: it adds the duration since midnight to midnight of that date. I remember us bumping in that issue and making sure it’s correctly fixed. Feel free to reopen if you would see unexpected behaviour in your results. @julianrojas87 can you look into #113 so that @derhuerst can continue?

@derhuerst
Copy link
Contributor

Just noticed that I had opened #110 for this, so no matter if it's actually an issue, we can discuss there.

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

No branches or pull requests

2 participants