# Change windows clock from ignition gateway

**URL:** <https://forum.inductiveautomation.com/t/change-windows-clock-from-ignition-gateway/56196>\
**Category:** Ignition\
**Tags:** ignition81, vision, scripting\
**Created:** [February 16, 2022, 10:14am UTC](https://forum.inductiveautomation.com/t/change-windows-clock-from-ignition-gateway/56196 "2022-02-16T10:14:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Hoybakk\_Nybo](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@Thomas\_Hoybakk\_Nybo](https://forum.inductiveautomation.com/u/Thomas_Hoybakk_Nybo)\
**Post date:** [February 16, 2022, 10:14am UTC](https://forum.inductiveautomation.com/t/change-windows-clock-from-ignition-gateway/56196/1 "2022-02-16T10:14:54Z")

</div>

Does anyone have any tips on how to change the windows clock on a gateway server from the gateway?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 16, 2022, 4:22pm UTC](https://forum.inductiveautomation.com/t/change-windows-clock-from-ignition-gateway/56196/2 "2022-02-16T16:22:40Z")

</div>

In theory, `system.util.execute` paired with the `date` or `time` builtins:

> <https://superuser.com/questions/1214025/use-command-prompt-to-change-date-and-time/1214043#1214043>

[https://docs.inductiveautomation.com/display/DOC81/system.util.execute](https://docs.inductiveautomation.com/display/DOC81/system.util.execute)

In practice, I would recommend not doing this. I can’t really imagine why you would need to do this, let alone often enough to script something. Also, Java has its own timekeeping and disagreeing with the OS could cause issues with e.g. history.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 16, 2022, 4:33pm UTC](https://forum.inductiveautomation.com/t/change-windows-clock-from-ignition-gateway/56196/3 "2022-02-16T16:33:22Z")

</div>

Why would you want to do that? The gateway’s clock should be updating from an NTP server.

---

<div class="post-metadata">

**Author:** ![Thomas\_Hoybakk\_Nybo](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@Thomas\_Hoybakk\_Nybo](https://forum.inductiveautomation.com/u/Thomas_Hoybakk_Nybo)\
**Post date:** [February 18, 2022, 1:03pm UTC](https://forum.inductiveautomation.com/t/change-windows-clock-from-ignition-gateway/56196/4 "2022-02-18T13:03:23Z")

</div>

The gateway is the main clock in the system which all other systems synch with.  
The system doesn’t have access to internet and it moves through different time zones where the operator adjust system time.

The system.util.execute worked running some .bat files to update the clock.
