# How to change Gateway Timezone?

**URL:** <https://forum.inductiveautomation.com/t/how-to-change-gateway-timezone/2127>\
**Category:** Archived Topics\
**Created:** [August 17, 2010, 1:56pm UTC](https://forum.inductiveautomation.com/t/how-to-change-gateway-timezone/2127 "2010-08-17T13:56:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![skallepalli](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@skallepalli](https://forum.inductiveautomation.com/u/skallepalli)\
**Post date:** [August 17, 2010, 1:56pm UTC](https://forum.inductiveautomation.com/t/how-to-change-gateway-timezone/2127/1 "2010-08-17T13:56:17Z")

</div>

Hi,

We have some few challenges:

1. When we run SELECT NOW(); statement in MySQL Browser it returned ‘2010-08-17 17:24:51’ as a result. When we used same query in FactoryPMI Text Field the result is ‘2010-08-18 05:56:28’.

2. We have a Text Field in our Window which has ‘2010-08-12 00:00:00’ as text. When we used ‘dateFormat({Root Container.nfDateRange.Text}, “dd MMMM yyyy”)’ in Expression for the Label, it is showing ‘11 August 2010’ .

3. We have two components (one Calendar, one Date Range) in our Window. We mapped these two by setting Date (immediate) of the Calendar to StartDate of Date Range and dateArithmetic(date, 1, “day”) as EndTime. When we click on ‘2010-08-18’, the Date Range showing 2010-08-18 : 2010-08-19 which is correct. When we click on 2010-08-12 and again click on 2010-08-18 then it shows 2010-08-12 : 2010-08-18 which is incorrect.

Are these problems are related to Gateway Timezone ?. How to change the Gateway Timezone ?. Currently we have "America/Los\_Angeles [GMT-8:00] " as our Time zone. Shall we change to India Timezone ?.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [August 17, 2010, 5:49pm UTC](https://forum.inductiveautomation.com/t/how-to-change-gateway-timezone/2127/2 "2010-08-17T17:49:03Z")

</div>

The Gateway will take the timezone from the host OS, so you should be able to simply change the timezone in Windows and restart the Gateway.

---

<div class="post-metadata">

**Author:** ![skallepalli](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@skallepalli](https://forum.inductiveautomation.com/u/skallepalli)\
**Post date:** [August 18, 2010, 1:43pm UTC](https://forum.inductiveautomation.com/t/how-to-change-gateway-timezone/2127/3 "2010-08-18T13:43:27Z")

</div>

Thanks Carl. All the above challenges are related to Time Zone only ?

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [August 18, 2010, 3:57pm UTC](https://forum.inductiveautomation.com/t/how-to-change-gateway-timezone/2127/4 "2010-08-18T15:57:13Z")

</div>

Yes, they are all related to timezones, but don’t be fooled: timezone issues can be extremely confusing.

You have 1) timezone of the server 2) timezone patches for the OS due to DST changes 3) timezone patches for Java 4) timezone settings in the database 5) and 1-3 for client machines as well.

---

<div class="post-metadata">

**Author:** ![skallepalli](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@skallepalli](https://forum.inductiveautomation.com/u/skallepalli)\
**Post date:** [August 20, 2010, 9:44am UTC](https://forum.inductiveautomation.com/t/how-to-change-gateway-timezone/2127/5 "2010-08-20T09:44:12Z")

</div>

Thank you Carl.

---

<div class="post-metadata">

**Author:** ![thowsham](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@thowsham](https://forum.inductiveautomation.com/u/thowsham)\
**Post date:** [May 28, 2020, 3:54am UTC](https://forum.inductiveautomation.com/t/how-to-change-gateway-timezone/2127/6 "2020-05-28T03:54:08Z")

</div>

I am getting the same problem:  
PC is Win 10 Time 8:49 pm  
PC Timezone (UTC -8:00) Pacific Time  
Gateway Time 10:49 pm  
Gateway Timezone GMT-5:00

No matter what I change the Timezone to on my PC, the Gateway Timezone is always GMT-5:00
