Time difference between GTFS and UI

36 views
Skip to first unread message

Thorsten

unread,
Apr 17, 2012, 2:08:12 PM4/17/12
to OpenTripPlanner Developers
Hallo,

I am experimenting with OTP, and with the help of the WIKI got are OTP
running.
Thank you for all the work put into the Tutorials and Wiki, it helps
allot.

But I can not get GTFS times to represent correctly in the Webapp?:

Webapp UI:
1: Tue, Apr 17th 8:25am - Tue, Apr 17th 9:08am

Webapp-API Response:
...<starttime>
2012-04-17T08:27:00+02:00
</starttime>....

GTFS->StopTimes:
trip_id,arrival_time,departure_time,stop_id,stop_sequence,stop_headsign,pickup_type,drop_off_time,shape_dist_traveled
GT_NS_N,06:27:00,06:27:00,GT_TRAIN_STOP,5,,,,


Any help how i can fix this, I would be very greatfull.
Where could the Problem be GTFS-AgencyTimeZone, JVM default timezone,
graph-builder config, tomcat or a other config file?

Thanks 4 a fun great open source project,
Thorsten

David Turner

unread,
Apr 17, 2012, 2:36:07 PM4/17/12
to opentripp...@googlegroups.com
What's the timezone value from your agencies.txt file?

Thorsten

unread,
Apr 18, 2012, 4:48:31 AM4/18/12
to OpenTripPlanner Developers
Hallo David,

thanks for the quick reply,
after defining the agency_timezone again everything works

http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
"agency_timezone"
"Africa/Johannesburg"

so it was a spelling mistake on my side in the GTFS

Thorsten

David Turner

unread,
Apr 19, 2012, 5:39:41 PM4/19/12
to opentripp...@googlegroups.com
So to clarify: agency_timezone was present but misspelled, and we didn't
give any error or warning about this at all.

That's because of a bug in OneBusAway-GTFS which is caused by what I
consider a bug in the Java standard library:
TimeZone.getTimeZone("unknown timezone") returns GMT rather than null.

I have submitted a bug report upstream to OBA-GTFS.

Thanks for letting us know about this!

Reply all
Reply to author
Forward
0 new messages