# In the homey bridge,How to get time zone?

**URL:** <https://community.homey.app/t/in-the-homey-bridge-how-to-get-time-zone/94866>\
**Category:** Questions & Help\
**Tags:** homey-bridge\
**Created:** [November 17, 2023, 2:27am UTC](https://community.homey.app/t/in-the-homey-bridge-how-to-get-time-zone/94866 "2023-11-17T02:27:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![yu\_guoliang](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yu_guoliang/32/93858_2.png) [@yu\_guoliang](https://community.homey.app/u/yu_guoliang)\
**Post date:** [November 17, 2023, 2:27am UTC](https://community.homey.app/t/in-the-homey-bridge-how-to-get-time-zone/94866/1 "2023-11-17T02:27:02Z")

</div>

In the homey bridge, I can’t get the time zone using this.homey.clock.getTimezone(), It returns Etc/GMT instead of my current time zone

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 17, 2023, 6:07am UTC](https://community.homey.app/t/in-the-homey-bridge-how-to-get-time-zone/94866/2 "2023-11-17T06:07:39Z")

</div>

Is your location set correctly? In the settings of the mobile app.

---

<div class="post-metadata">

**Author:** ![yu\_guoliang](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yu_guoliang/32/93858_2.png) [@yu\_guoliang](https://community.homey.app/u/yu_guoliang)\
**Post date:** [November 17, 2023, 6:16am UTC](https://community.homey.app/t/in-the-homey-bridge-how-to-get-time-zone/94866/3 "2023-11-17T06:16:44Z")

</div>

The position should be correct，I can get it at the homey，However, it cannot be obtained in homey bridge

---

<div class="post-metadata">

**Author:** ![yu\_guoliang](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yu_guoliang/32/93858_2.png) [@yu\_guoliang](https://community.homey.app/u/yu_guoliang)\
**Post date:** [November 17, 2023, 6:18am UTC](https://community.homey.app/t/in-the-homey-bridge-how-to-get-time-zone/94866/4 "2023-11-17T06:18:45Z")

</div>

I tried luxon and moment-timezone, But the time zone returned is UTC, not my current time zone

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 17, 2023, 6:21am UTC](https://community.homey.app/t/in-the-homey-bridge-how-to-get-time-zone/94866/5 "2023-11-17T06:21:35Z")

</div>

> [@yu\_guoliang](#):
>
> The position should be correct

Don’t assume, check 😛 A cloud account is separate from any Homey Pro’s that you have.

What’s the timezone set for your cloud/bridge account on this page?  
[https://tools.developer.homey.app/tools/system](https://tools.developer.homey.app/tools/system)

(if you both a Homey Pro and a Homey Cloud account, select the correct one in the upper left corner)

---

<div class="post-metadata">

**Author:** ![Karen\_Linkous](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/karen_linkous/32/91618_2.png) [@Karen\_Linkous](https://community.homey.app/u/Karen_Linkous)\
**Post date:** [November 17, 2023, 6:22am UTC](https://community.homey.app/t/in-the-homey-bridge-how-to-get-time-zone/94866/6 "2023-11-17T06:22:10Z")

</div>

The `this.homey.clock.getTimezone()` method in the Homey Bridge only retrieves the default timezone, which is `Etc/GMT` .

To obtain your actual timezone, you’ll need to utilize an external time zone API or library that can provide timezone information based on your Homey Bridge’s location.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 17, 2023, 6:24am UTC](https://community.homey.app/t/in-the-homey-bridge-how-to-get-time-zone/94866/7 "2023-11-17T06:24:15Z")

</div>

> [@Karen\_Linkous](#):
>
> The `this.homey.clock.getTimezone()` method in the Homey Bridge only retrieves the default timezone, which is `Etc/GMT` .

Wow, really? That’s even worse than “just” running apps in that timezone like it does on Homey Pro.

---

<div class="post-metadata">

**Author:** ![yu\_guoliang](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yu_guoliang/32/93858_2.png) [@yu\_guoliang](https://community.homey.app/u/yu_guoliang)\
**Post date:** [November 17, 2023, 6:30am UTC](https://community.homey.app/t/in-the-homey-bridge-how-to-get-time-zone/94866/8 "2023-11-17T06:30:22Z")

</div>

![1700202115471](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/1/21867a61344258181696aaf5994b44d3aa0b8df4.png)

The location of the homey bridge cannot be loaded. Is that the reason?

---

<div class="post-metadata">

**Author:** ![yu\_guoliang](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yu_guoliang/32/93858_2.png) [@yu\_guoliang](https://community.homey.app/u/yu_guoliang)\
**Post date:** [November 17, 2023, 6:51am UTC](https://community.homey.app/t/in-the-homey-bridge-how-to-get-time-zone/94866/9 "2023-11-17T06:51:09Z")

</div>

What API or library can you refer to?

---

<div class="post-metadata">

**Author:** ![yu\_guoliang](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/yu_guoliang/32/93858_2.png) [@yu\_guoliang](https://community.homey.app/u/yu_guoliang)\
**Post date:** [November 17, 2023, 6:53am UTC](https://community.homey.app/t/in-the-homey-bridge-how-to-get-time-zone/94866/10 "2023-11-17T06:53:46Z")

</div>

![1700203993982](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/2/82610804912cc5434c1af5e8e291fcdd82c0db21.png)
