# Gateway Timezones and Script function behavior

**URL:** <https://forum.inductiveautomation.com/t/gateway-timezones-and-script-function-behavior/107050>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [June 4, 2025, 7:55pm UTC](https://forum.inductiveautomation.com/t/gateway-timezones-and-script-function-behavior/107050 "2025-06-04T19:55:53Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [June 4, 2025, 8:32pm UTC](https://forum.inductiveautomation.com/t/gateway-timezones-and-script-function-behavior/107050/2 "2025-06-04T20:32:46Z")

</div>

1. Because the expression runs in the gateway, not in the client.

2. Because the expression runs in the gateway, not in the client.

3. You will need to set the project timezone to "America/Chicago" so Perspective components that understand date/time types can handle them in your desired timezone, and use scripts to apply `session.props.timeZoneId` wherever you wish direct control over datetime formatting.

See this topic for suggestions on the latter (read the whole topic):

> [@Ignition Perspective Page to show the client System date and time](https://forum.inductiveautomation.com/t/ignition-perspective-page-to-show-the-client-system-date-and-time/73265):
>
> Is it possible to display the client computer/system date and time on perspective web page? dateFormat(now(60000), "yyyy-MMM-dd HH:mm:ss a") showing the Gateway Server system date and time. Under Browse Tags-\> System -\> Client Tags are not available for Perspective sessions.

---

_[View the full topic](https://forum.inductiveautomation.com/t/gateway-timezones-and-script-function-behavior/107050)._
