# Perpective Client Timezones not being used when I have it set to do so

**URL:** <https://forum.inductiveautomation.com/t/perpective-client-timezones-not-being-used-when-i-have-it-set-to-do-so/81623>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 7, 2023, 8:53pm UTC](https://forum.inductiveautomation.com/t/perpective-client-timezones-not-being-used-when-i-have-it-set-to-do-so/81623 "2023-11-07T20:53:10Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Cole\_Townsend](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cole_townsend/32/53149_2.png) [@Cole\_Townsend](https://forum.inductiveautomation.com/u/Cole_Townsend)\
**Post date:** [November 7, 2023, 9:27pm UTC](https://forum.inductiveautomation.com/t/perpective-client-timezones-not-being-used-when-i-have-it-set-to-do-so/81623/6 "2023-11-07T21:27:42Z")

</div>

I obviously didn't dig hard enough. This came up once I refined my search slightly:

> [@\[IGN-6614\]What is the best way to format a date (milliseconds) for a specified timezone with Ignition's python scripting](https://forum.inductiveautomation.com/t/ign-6614-what-is-the-best-way-to-format-a-date-milliseconds-for-a-specified-timezone-with-ignitions-python-scripting/64068/7):
>
> Ah, I was overthinking things. SimpleDateFormat extends DateFormat. DateFormat defines setTimeZone(). TimeZone is an instance of java.util.TimeZone, and easiest obtained from an ID. from java.util import TimeZone from java.text import SimpleDateFormat #for tz in TimeZone.getAvailableIDs(): # print tz now = system.date.now() eastern = TimeZone.getTimeZone("America/New\_York") pacific = TimeZone.getTimeZone("America/Los\_Angeles") sdf = SimpleDateFormat("yyyy-MM-dd HH:mm:ss ZZZ") print sdf.ge…

This is my final solution:

```auto
def transform(self, value, quality, timestamp):
	from java.util import TimeZone
	from java.text import SimpleDateFormat	
	tz = TimeZone.getTimeZone(self.session.props.timeZoneId)
	sdf = SimpleDateFormat("E MMM d, h:mm:ss a z")
	sdf.setTimeZone(tz)
	return "Scheduled for: " + sdf.format(system.date.fromMillis(value))

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/perpective-client-timezones-not-being-used-when-i-have-it-set-to-do-so/81623)._
