Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
Email Client prints PST timezone instead of the user timezone - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • Email Client prints PST timezone instead of the user timezone
KB0817544

Email Client prints PST timezone instead of the user timezone


1474 Views Last updated : Jul 24, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

When a reply to an email message is made using the email client, the OOB "insert_original_email_message" Email Script prints PST timezone instead of user timezone

Even though the “glide.email.append.timezone” value is set to true and that the system properties has the correct timezone as do the user records.

Steps to reproduce:

  1. Enable the glide.ui16.emailStreamResponseActions system property.
  2. Open any incident and check for the “email sent” in the activity formatter, In the email details reply, reply all, forward button are visible.
  3. On clicking the reply button, the email client will open and in that one can observer the “On 2020-02-27 05:47:19 PST, 'system' wrote:
  4. Here if the system property has different system time zone eg: GMT, though the system returns the PST in email client.

Cause

This reply form is controlled by “reply-sent” email client template which in turn calls the OOB email script “insert_original_email_message”. The script uses toLocaleString() to get this default PST timezone conversion, because date is a built-in JS object, toLocaleString() uses browser's default locale. If browser's locale is not defined, it uses system locale.

Reference: JavaScript Date objects

Resolution

Update the email script to use GlideDateTime to honour system property/user timezone preferences.

Change the line in the email script “insert_original_email_message” code from 

template.print("On " + cdate.toLocaleString() + ", '" + uname + "' wrote:\n\n");

To

var gdt = new GlideDateTime(cdate);

var curr_date = gdt.getDisplayValue();

template.print("On " + curr_date + ", '" + uname + "' wrote:\n\n");

Related Links

Please ensure all testing is done on sub-production instances before implemented on a production instance


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.