Set the Timezone automatically

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

And a Google search may also provide some background on the topic

(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