-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Remove parsing of GBFS timezones #4313
Remove parsing of GBFS timezones #4313
Conversation
@@ -18,7 +16,6 @@ public class VehicleRentalSystem { | |||
public final String phoneNumber; | |||
public final String email; | |||
public final String feedContactEmail; | |||
public final ZoneId timezone; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be ok to just store it as String here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, why not.
Codecov Report
@@ Coverage Diff @@
## dev-2.x #4313 +/- ##
=============================================
+ Coverage 57.13% 57.18% +0.05%
- Complexity 10779 10786 +7
=============================================
Files 1429 1428 -1
Lines 58086 58020 -66
Branches 6728 6728
=============================================
- Hits 33185 33181 -4
+ Misses 22891 22830 -61
+ Partials 2010 2009 -1
Continue to review full report at Codecov.
|
Summary
Sadly there are many invalid GBFS feeds out there which send an incorrect timezone.
Examples:
Unfortunately, the validator doesn't validate this yet: MobilityData/gbfs-validator#76
This causes OTP to completely reject the feed.
Since we actually don't really need the timezone I've skipped parsing it and using an
Instant
instead.