Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Convert UTC time to EST in Emails sent out of Saviynt.

suchetadineshs
New Contributor
New Contributor

Hello,

Please suggest if there is way to convert UTC timestamp into EST in the Emails sent out of Saviynt.

Eg: Sample snip of  mail displays UTC time. This should be displayed in EST.

suchetadineshs_0-1665069658252.png

Thanks!

4 REPLIES 4

Srinivas
Saviynt Employee
Saviynt Employee

Hi @suchetadineshs 

As I understand from the case, the requirement is to insert the time the email was triggered and the time should be the server's time zone from which the email trigger was originated. You want that time to be in your local time, not UTC. could you please try.

${(new Date()).format('MM-dd-yyyy hh:mm a',TimeZone.getTimeZone('EST'))}

Thanks & Regards

Srinivas

Hello Sriniwas,

With given string, it gives CST time not the EST. 

Thanks.

Srinivas
Saviynt Employee
Saviynt Employee

@suchetadineshs 

${new Date().format('MM-dd-yyyy hh:mm a',TimeZone.getTimeZone('EST5EDT'))}

Please find below a list of all available TimeZones :

https://garygregory.wordpress.com/2013/06/18/what-are-the-java-timezone-ids/

Thanks & Regards

Srinivas

 

Thank you Srinivas!