Time Zone in email notifications Not in contact's time zone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2024 05:26 AM
Hi All,
I understand that the date and time are stored internally in GMT and displayed in the user’s time zone on forms. However, in email notifications, the time is still shown in GMT, which is problematic since we have customers in various countries (e.g., Singapore, the USA). It should be displayed in the contact’s time zone. I’ve read that using getDisplayValue() in an email notification script can address this, but I haven’t been able to implement it successfully. Could anyone share a script or suggest another solution?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2024 08:33 AM
Hi @Mohamed Elsayed ,
You can use GlideDateTime APIs setTimeZone method to covert time to different time zone. while sending the notification extract the user's timezone and pass it to the setTimeZone method (this is not supported in scoped applications).
you can refer this article
https://snprotips.com/blog/2017/9/12/handling-timezones-in-servicenow-timezoneutil
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2025 10:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2025 03:25 AM
Hi @Manasa Reddy Li,
I tried some solutions but none of them worked for me so far.
Still trying and will update this page if we find any solution that wors.
Regards,
Mo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2025 03:29 AM
That would be helpful @Mohamed Elsayed , Thankyou !!