Set the Timezone automatically

Hi
How to set the timezone based on the location. I am having the coordinates of my photon device. But I need to set the timezone based on the coordinates. If anyone help me regarding this it will be helpful.:smile:

Have you done a forum search for time zone ip?
This would be the result
https://community.particle.io/search?q=time%20zone%20ip

And a Google search may also provide some background on the topic
https://www.google.at/search?q=google+timezone+api&oq=google+timezone+api+&aqs=chrome..69i57j0l5.21746j0j7&sourceid=chrome&ie=UTF-8

(I closed your double post about this very topic - don’t double post!)

1 Like

Google has a WebSerice that takes last, long, UTC time stamp and will give you everything you need to get TZ data like DST, raw offset and TimeZone name. Shouldn’t be hard to use a webhook to pull that in. I’ve been working on a lib that uses the Google Device Geolocator to get location and TZ data but don’t wait for me if you need it anytime soon, it’s just something I’ve been messing with and have no timeline on getting completed.

1 Like