Question

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?

Was it helpful?

Solution

I replaced the line:

var tzOffset = (now.getTimezoneOffset() + 60) * 60 * 1000;

with:

var tzOffset = now.getTimezoneOffset();

and it looks like working properly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top