How does OTP handle timezone

562 views
Skip to first unread message

K M

unread,
Oct 27, 2014, 9:16:56 PM10/27/14
to opentrippl...@googlegroups.com
Hi Folks,

I see that the Planner Request from 0.11.x has Date and Time field seperate. Date is something like "YYYY-MM-DD" and time is "hh:mm" 12 hr

Quick question:
1) How does it deal with several timezone then?
2) How does it handle Day light saving?


Thanks in advance :)

Marko Burjek

unread,
Oct 28, 2014, 2:32:28 PM10/28/14
to opentripplanner-users
It should use timezone of Default agency in GTFS feed.
If there is no agency is uses GMT timezone.
https://github.com/opentripplanner/OpenTripPlanner/blob/0.11.x/otp-core/src/main/java/org/opentripplanner/routing/graph/Graph.java#L716

1) It currently assumes each graph has one timezone.
2) Daylight savings are handled with normal Java TimeZone class I would assume.

--
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages