# Client vision timezone update problem

**URL:** <https://forum.inductiveautomation.com/t/client-vision-timezone-update-problem/70778>\
**Category:** Ignition\
**Tags:** vision, ignition79\
**Created:** [March 8, 2023, 2:17pm UTC](https://forum.inductiveautomation.com/t/client-vision-timezone-update-problem/70778 "2023-03-08T14:17:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marwane.gannoun](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/marwane.gannoun/32/15701_2.png) [@marwane.gannoun](https://forum.inductiveautomation.com/u/marwane.gannoun)\
**Post date:** [March 8, 2023, 2:17pm UTC](https://forum.inductiveautomation.com/t/client-vision-timezone-update-problem/70778/1 "2023-03-08T14:17:19Z")

</div>

Hello everyone,

We are using an **Ignition 7.9.18** gateway installed on board a ship.  
During sailling, the timezone changes continuously according to the position of the ship. The timezone chnage can occur even 3 times a week.  
The ship is equipped with an ntp server to which the gateway is connected.  
Under the Project Properties, the **Timezone Behavior** is set to **Client Timezone**.

The problem is that when the timezone changes the OS time is updated correctly but not the client vision time (**[System]Client/System/CurrentDateTime**).

But when the client is restarted, the client vision time will be updated according the new OS time.  
Restarting the vision each time is not very convenient for the user.

We are looking for help in finding a solution using a **script** to push client timezone update or configuring **missing parameter** or any other suitable method.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 8, 2023, 10:05pm UTC](https://forum.inductiveautomation.com/t/client-vision-timezone-update-problem/70778/2 "2023-03-08T22:05:29Z")

</div>

I haven't done this, but you should be able to directly set the Vision Client's java runtime's default timezone on the fly, with immediate effect, using [java.util.TimeZone.setDefault()](https://docs.oracle.com/javase/8/docs/api/java/util/TimeZone.html#setDefault-java.util.TimeZone-).

---

<div class="post-metadata">

**Author:** ![marwane.gannoun](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/marwane.gannoun/32/15701_2.png) [@marwane.gannoun](https://forum.inductiveautomation.com/u/marwane.gannoun)\
**Post date:** [March 9, 2023, 3:09pm UTC](https://forum.inductiveautomation.com/t/client-vision-timezone-update-problem/70778/3 "2023-03-09T15:09:36Z")

</div>

I fixed the problem. The idea was creating a Client Event Script that allow :

1. getting the OS Timezone using the cmd command _ **tzutil /g** _
2. convert the Os Timezone ID to Java Timezone ID
3. updating Timezone java using _**java.util.TimeZone.setDefault()**_
