2

As tzwhere is taking a longer time to run on Serverless, how do I get the proper timezone which supports daylight savings. I need to pass in either latitude and longitude or the zipcode to find the timezone, say, 'US/Eastern'.

ZZzzZZzz
  • 1,800
  • 3
  • 29
  • 51
  • Possible duplicate of [Mapping US zip code to time zone](https://stackoverflow.com/questions/2456324/mapping-us-zip-code-to-time-zone) – usernamenotfound Jan 11 '18 at 16:05
  • 1
    @Usernamenotfound I'd close this as a duplicate, except that there might be a solution based on Lat/Long too. None of the answers at that question are ideal. – Mark Ransom Jan 11 '18 at 16:45
  • @Mark - Lat Long are my priority. I dont want to use tzwhere as it has to loop through the entire tz_world file which is not a preferable solution on AWS Lambda. – ZZzzZZzz Jan 11 '18 at 16:59
  • Too bad you don't have IP address. I have IP-->Lat/Long-->Timezone working in a Lambda via [IP2Location](http://lite.ip2location.com/database/ip-country-region-city-latitude-longitude-zipcode-timezone). You may be able to get their free CSV version and make it do your bidding. But I am not proposing this as an answer because you don't have IP. So to the point from @MarkRansom — another "not ideal" answer lol – Geek Stocks Jan 14 '18 at 20:19

0 Answers0