Hacker News new | comments | show | ask | jobs | submit login
Show HN: Commute Time Calculator (pminkov.github.io)
13 points by petko_minkov 132 days ago | hide | past | web | 3 comments | favorite



This is pretty neat. Can you explain the time zone debug output? Is 6am in the table actually 6am in my local time when I run it?


Thanks. 6AM in the table is 6AM where your location "A" is. This way, you can be in the Bay Area and query for commute times in New York, if you need to.

It prints: Monday, 6am (target) is the same as following local time: Mon Mar 27 2017 03:00:00 GMT-0700 (PDT)

Indeed, I'm in the Bay Area and I have to pass 3AM PDT to Google's API in order to get traffic for 6AM New York time. There might be a way to change the timezone with JS, but I didn't find it, so I'm just passing adjusted times from the local time zone.


Thanks for the quick reply and the explanation!




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: