# Gateway time, system.date.now() have different output

**URL:** <https://forum.inductiveautomation.com/t/gateway-time-system-date-now-have-different-output/88308>\
**Category:** Ignition\
**Tags:** ignition80, ignition81, scripting\
**Created:** [April 3, 2024, 6:14pm UTC](https://forum.inductiveautomation.com/t/gateway-time-system-date-now-have-different-output/88308 "2024-04-03T18:14:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayanakoji](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@Ayanakoji](https://forum.inductiveautomation.com/u/Ayanakoji)\
**Post date:** [April 3, 2024, 6:14pm UTC](https://forum.inductiveautomation.com/t/gateway-time-system-date-now-have-different-output/88308/1 "2024-04-03T18:14:31Z")

</div>

Why my system.date.now() script has different time to my gateway time, it should be the same right? any reasons why this happening?

Thanks!

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 3, 2024, 6:18pm UTC](https://forum.inductiveautomation.com/t/gateway-time-system-date-now-have-different-output/88308/2 "2024-04-03T18:18:57Z")

</div>

Where are you running the script? What difference are you seeing?

---

<div class="post-metadata">

**Author:** ![Ayanakoji](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@Ayanakoji](https://forum.inductiveautomation.com/u/Ayanakoji)\
**Post date:** [April 3, 2024, 6:24pm UTC](https://forum.inductiveautomation.com/t/gateway-time-system-date-now-have-different-output/88308/3 "2024-04-03T18:24:28Z")

</div>

hi sir, im running it on the script console this is my gateway time  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/8/c8c452d8d888fbf013ef44c4b35b7156f96dfbf1.png)

and this is from script console  
Wed Apr 03 13:23:54 CDT 2024

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 3, 2024, 6:26pm UTC](https://forum.inductiveautomation.com/t/gateway-time-system-date-now-have-different-output/88308/4 "2024-04-03T18:26:13Z")

</div>

> [@Ayanakoji](#):
>
> im running it on the script console

It's going to return whatever time it is on the computer running the Designer, regardless of where the Gateway is or what time it is on the Gateway.

---

<div class="post-metadata">

**Author:** ![Ayanakoji](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@Ayanakoji](https://forum.inductiveautomation.com/u/Ayanakoji)\
**Post date:** [April 3, 2024, 6:27pm UTC](https://forum.inductiveautomation.com/t/gateway-time-system-date-now-have-different-output/88308/5 "2024-04-03T18:27:57Z")

</div>

hmm thats odd, because im also working on another project and its showing 1 hr behind for the system.date.now() function, running on same computer btw

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [April 3, 2024, 6:48pm UTC](https://forum.inductiveautomation.com/t/gateway-time-system-date-now-have-different-output/88308/6 "2024-04-03T18:48:48Z")

</div>

That could be the timezone settings of the project.

---

<div class="post-metadata">

**Author:** ![Ayanakoji](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@Ayanakoji](https://forum.inductiveautomation.com/u/Ayanakoji)\
**Post date:** [April 3, 2024, 6:56pm UTC](https://forum.inductiveautomation.com/t/gateway-time-system-date-now-have-different-output/88308/7 "2024-04-03T18:56:09Z")

</div>

yeah i did that already, tried to change the timezone behavior to gateway timezone, still not changing, am I missing something other settings?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/6/e6baa02f05195aabd4dcb79910092598cab3570a.png)

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [April 3, 2024, 7:08pm UTC](https://forum.inductiveautomation.com/t/gateway-time-system-date-now-have-different-output/88308/8 "2024-04-03T19:08:38Z")

</div>

You'll need to re-open the project.

EDIT: The locales and timezones are only read once at the start.

---

<div class="post-metadata">

**Author:** ![Ayanakoji](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@Ayanakoji](https://forum.inductiveautomation.com/u/Ayanakoji)\
**Post date:** [April 3, 2024, 7:14pm UTC](https://forum.inductiveautomation.com/t/gateway-time-system-date-now-have-different-output/88308/9 "2024-04-03T19:14:56Z")

</div>

hmm i tried this already, and its still not working 🙃
