Reputation: 23
I am using this example: http://gmaps-samples-v3.googlecode.com/svn/trunk/transit/transit.html but when I modified the code with the info related to my location, the departure code is not working. I only changed the origin and the destination.
This is the page with my code: http://goo.gl/fgmB9e
Any advice or suggestion?
Upvotes: 0
Views: 670
Reputation: 23
I replaced the line:
var tzOffset = (now.getTimezoneOffset() + 60) * 60 * 1000;
with:
var tzOffset = now.getTimezoneOffset();
and it looks like working properly.
Upvotes: 1