# HomeyScript and system clock

**URL:** <https://community.homey.app/t/homeyscript-and-system-clock/105446>\
**Category:** Questions & Help\
**Created:** [March 3, 2024, 5:14pm UTC](https://community.homey.app/t/homeyscript-and-system-clock/105446 "2024-03-03T17:14:00Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [March 4, 2024, 8:53am UTC](https://community.homey.app/t/homeyscript-and-system-clock/105446/4 "2024-03-04T08:53:40Z")

</div>

> [@Imilender](#):
>
> But the timeInLocale still returns the UTC time?

`toLocaleTimeString()` by itself only formats a time string according to the current locale, not the current timezone. For that, [see this post](https://community.homey.app/t/local-time-in-homeyscript/33338/35).

---

_[View the full topic](https://community.homey.app/t/homeyscript-and-system-clock/105446)._
