Determine timezone from lat/long in NodeJS
npm install tzwhere
var tzwhere =tzwhere;var whiteHouse = 'lat': 38897663 'lng': -77036562;// Determine the timezone of the White Houseconsole;// Determine the current offset from UTC, in milliseconds, of the White House's timezoneconsole;
depending on the current state of daylight savings time in the America/New_York timezone. You can also do it asynchronously.
You can also pass alternative GeoJSON shape files:
var tzwhere =tzwhere;...
Check the tests for more comprehensive usage, including determining the timezone offsets at arbitrary dates (very useful for scheduling future events expressed in local time).