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

Timestamps missing for times after midnight the next day #179

Open
macourteau opened this issue Jan 8, 2025 · 1 comment
Open

Timestamps missing for times after midnight the next day #179

macourteau opened this issue Jan 8, 2025 · 1 comment

Comments

@macourteau
Copy link

Departure and arrival times are sometimes after midnight the next day (e.g. '24:03:30'). Any time value that is after midnight the next day has a null matching <field>_timestamp field, likely because of this check:

if (
[hours, minutes, seconds].some(isNaN) ||
hours >= 24 ||
minutes >= 60 ||
seconds >= 60
) {
return null;
}

Would it make sense to allow for some amount of time past 24h to make sure these fields don't have null timestamps?

@brendannee
Copy link
Member

Thanks for reporting this and pointing to the answer!

I pushed an update that resolves this issue: https://github.com/BlinkTagInc/node-gtfs/releases/tag/4.15.12 - check it out and let me know if it works as expected.

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