# Request To Fix TimeZone Transformation

**URL:** <https://forum.inductiveautomation.com/t/request-to-fix-timezone-transformation/109077>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [July 29, 2025, 2:30pm UTC](https://forum.inductiveautomation.com/t/request-to-fix-timezone-transformation/109077 "2025-07-29T14:30:47Z")\
**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:** [July 29, 2025, 2:38pm UTC](https://forum.inductiveautomation.com/t/request-to-fix-timezone-transformation/109077/2 "2025-07-29T14:38:57Z")

</div>

Use Java's `ZonedDateTime`. Ignition's datetime objects are `java.util.Date` which are fundamentally UTC under the hood, with no attached time zone. Which means they **always** use the time zone of the JVM when parsing or printing. When you manipulate them with `.addHours()`, you are not making a time zone correction, but are altering the underlying UTC value. Don't use `.addHours()` to make time zone corrections.

Read this entire 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/8):
>
> Sure. I recommend [DateTimeFormatter.ofPattern()](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/time/format/DateTimeFormatter.html#ofPattern(java.lang.String)). But I would move the complexity to a project script module with a DateTimeFormatter instance with your preferred pattern saved as a top level variable. Like so, perhaps: from java.time import ZoneId from java.time.format import DateTimeFormatter defaultFormatter = DateTimeFormatter.ofPattern("YYYY-MM-dd HH:mm") def zonedFormat(ts, zoneid, format=None): formatter = defaultFormatter if format is None else DateTimeFormatter.ofPattern(format) r…

Note also that `DateTimeFormatter` can parse, too.

---

_[View the full topic](https://forum.inductiveautomation.com/t/request-to-fix-timezone-transformation/109077)._
