3 ms·
Make an API call to Google? ][1] https://developers.google.com/maps/documentation/timezone/start https://developers.google.com/maps/documentation/timezone/st...
by brudgers 10y ago
Make an API call to Google? ][1] https://developers.google.com/maps/documentation/timezone/start https://developers.google.com/maps/documentation/timezone/st...
An API call is going to be easier to implement than learning a new library.
[1]: Alternatives here: https://stackoverflow.com/questions/16086962/how-to-get-a-time-zone-from-a-location-using-latitude-and-longitude-coordinates https://stackoverflow.com/questions/16086962/how-to-get-a-ti...
- relaunched 10y agoThis particular solution requires Lat/Long and I'm not sure that makes a ton of sense for my particular mvp. If it ever does make sense, I'll be sure to check this out. It's a very convenient API.
- brudgers 10y agoA couple of alternatives I considered before suggesting an API. 1. Just use UTC and that it's a feature for the next vesion. It might be a way to start a conversation with early users. 2. Make a system call to the users operating system to determine future dates. 3. Make a system call to the server operating system to determine future dates. Finally, time zones are hard. How hard? Really hard. By really hard I mean that Apple screwed up on it a few years ago: http://wccftech.com/iphone-daylight-saving-time-bug-how-to-manually-set/ http://wccftech.com/iphone-daylight-saving-time-bug-how-to-m... People got over it. Good luck.