# Set the Timezone automatically

**URL:** <https://community.particle.io/t/set-the-timezone-automatically/40863>\
**Category:** General\
**Created:** [April 5, 2018, 5:14am UTC](https://community.particle.io/t/set-the-timezone-automatically/40863 "2018-04-05T05:14:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![imran445](https://avatars.discourse-cdn.com/v4/letter/i/3ab097/32.png) [@imran445](https://community.particle.io/u/imran445)\
**Post date:** [April 5, 2018, 5:14am UTC](https://community.particle.io/t/set-the-timezone-automatically/40863/1 "2018-04-05T05:14:33Z")

</div>

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.😄

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [April 12, 2018, 6:58am UTC](https://community.particle.io/t/set-the-timezone-automatically/40863/2 "2018-04-12T06:58:49Z")

</div>

Have you done a forum search for _time zone ip_?  
This would be the result  
[https://community.particle.io/search?q=time%20zone%20ip](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](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!)_

---

<div class="post-metadata">

**Author:** ![LukeUSMC](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/lukeusmc/32/6519_2.png) [@LukeUSMC](https://community.particle.io/u/LukeUSMC)\
**Post date:** [April 12, 2018, 2:03pm UTC](https://community.particle.io/t/set-the-timezone-automatically/40863/3 "2018-04-12T14:03:49Z")

</div>

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.

> **[Overview  |  Google Maps Time Zone API
       |  Google Developers](https://developers.google.com/maps/documentation/timezone/intro)**
>
> A simple interface to request the time zone for a location on the earth, as well as that location's time offset from UTC.
