openTdataCH / ojp-sdk

Meta OJP SDK repo
MIT License
4 stars 0 forks source link

TR: If a trip is cancelled EstimatedTime returns 0001-01-01T00:00:0 #85

Open deka91 opened 1 month ago

deka91 commented 1 month ago

Description I tested following trip with "Unterbruch": Meiringen - Interlaken Ost For the cancelled trip we always receive 0001-01-01T00:00:00 for EstimatedTime which is not a valid datetime

Expected Behavior We shouldnt receive any EstimatedTime when the trip is cancelled.

Current Behavior We receive 0001-01-01T00:00:00 for EstimatedTime when the trip is cancelled.

Steps to Reproduce Make a TripRequest for a cancelled trip because of disturbance. E.g.: Meiringen - Interlaken Ost Look up for trips with a disturbance on the disturbances overview.

Ressources

TO-mdv commented 3 weeks ago

Bug erstellt: SH-3465 OJP2.0 TR EstimatedTime = 0001-01-01T00:00:00

TO-mdv commented 3 weeks ago

Fixed and tested. All Testcases extended to check for this "invalid" date/time object

TO-mdv commented 3 weeks ago

Release on PROD 22.8.2024 (41-stable)