Change windows clock from ignition gateway

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

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

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.

1 Like

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

1 Like

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.