# Perspective session is showing the Timestamp in UTC instead of local

**URL:** <https://forum.inductiveautomation.com/t/perspective-session-is-showing-the-timestamp-in-utc-instead-of-local/83691>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 2, 2024, 4:00pm UTC](https://forum.inductiveautomation.com/t/perspective-session-is-showing-the-timestamp-in-utc-instead-of-local/83691 "2024-01-02T16:00:40Z")\
**Posts on this page:** 1\
**Showing post:** 15

<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:** [January 2, 2024, 5:52pm UTC](https://forum.inductiveautomation.com/t/perspective-session-is-showing-the-timestamp-in-utc-instead-of-local/83691/15 "2024-01-02T17:52:35Z")

</div>

When you do any Perspective date-to-string formatting operations yourself (whether expression binding or jython script), you are responsible for applying the session time zone. This topic shows how:

> [@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…

If you assign a datetime (`java.util.Date`, not a string, nor a jython `datetime`) to a Perspective component that knows how to do date formatting on the client side (typically has a `dateFormat` property somewhere), that component will do this for you.

---

_[View the full topic](https://forum.inductiveautomation.com/t/perspective-session-is-showing-the-timestamp-in-utc-instead-of-local/83691)._
