and more in a single search tool across platforms. Read the announcement here. |
10/06/2022 08:22 AM
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.
Thanks!
Solved! Go to Solution.
10/10/2022 10:43 AM - edited 10/10/2022 10:50 AM
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
10/11/2022 03:36 AM
Hello Sriniwas,
With given string, it gives CST time not the EST.
Thanks.
10/11/2022 04:15 AM
${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
10/11/2022 05:47 AM
Thank you Srinivas!