Time zones
Summarize
Summary of Time zones
ServiceNow stores all times in Coordinated Universal Time (UTC) and displays them based on the system or user-specific time zones. Users see times in their local time zone as defined in their profile settings, while the system relies on a default time zone configured by administrators to ensure consistency.
Show less
Time Zone Representation and Configuration
- Primary time zones use the Country/City format (e.g., America/LosAngeles), while alternate IDs (e.g., US/Pacific) link to these primary zones with identical offsets and daylight saving schedules.
- If no user or system default is set, the server’s JVM default is used, which may vary. Administrators should set the default time zone using the glide.sys.default.tz property to avoid dependency on server configuration.
Daylight Saving Time (DST)
Time zones specified by location automatically adjust for DST, while those specified by generic time zone names (e.g., GMT) generally do not. Exceptions exist, and DST handling follows Java and IANA time zone database standards.
User Preferences and Time Zone Selection
- Users can select their preferred time zone via Self-Service > My Profile. The system default time zone is indicated as "System ([time zone])".
- ServiceNow supports all Java time zone IDs, which can be viewed by inspecting the time zone choices on user records.
Time Zones in Notifications, SLAs, and Scripting
- Email notifications use the system time zone for timestamps. The property glide.email.append.timezone controls whether the system time zone is appended to date/time in outbound emails.
- Service Level Agreements (SLAs) allow configuring the time zone source in SLA definitions. Selecting the caller’s time zone can cause issues if the caller lacks a defined time zone; specifying a fixed SLA time zone requires manual setting on the SLA record.
- Scripting utilizes GlideSystem API date/time methods that return time values based on configured time zones, supporting accurate time handling in server scripts.
Enhancements and Time Zone Changer
- Reports and queries now properly observe DST for trend and line charts, and filters using the “trend on” operation.
- The time zone changer feature is enabled by default, allowing users to temporarily change their session time zone via system settings. This resets to the system default or user profile setting upon next login.
Practical Actions for ServiceNow Customers
- Set and verify the system default time zone using the glide.sys.default.tz property to ensure consistent time handling across the instance.
- Advise users to select their local time zone in their profile for accurate time display.
- When configuring SLAs, carefully choose the time zone source to prevent unexpected behavior.
- Review email notification properties to control time zone display in outbound messages.
- Leverage scripting APIs for precise time operations that respect configured time zones.
- Utilize the time zone changer for temporary session adjustments as needed.
All times are stored in Coordinated Universal Time (UTC) and appear globally based on the system time zone. However, times appear to users in their local time zone, according to their user preference settings.
Time zone representation
- For example, US/Pacific is a link to the America/Los_Angeles time zone. Both America/Los_Angeles and US/Pacific represent Pacific Standard Time with the same zone offset and Daylight Savings Time (DST) schedule.
- Other than the representation, there is no impact on date and time functionality.
- Depending on how the server is configured, it might return the Country/City or link, for example, US/Pacific or America/Los_Angeles.
- Administrators should configure their system with a default time zone
glide.sys.default.tzto avoid system dependencies. For more information, see Time zone representation.
Daylight Saving Time
- If you specify a time zone based on the time zone name (for example, GMT), which is discouraged, it does not typically adjust for daylight saving time. There are however exceptions to these guidelines.
- For more detailed information on how daylight saving time is handled in Java, see https://www.iana.org/time-zones and https://en.wikipedia.org/wiki/Tz_database.
User preferences
The System default appears as System ([name of the default time zone]). For example, if the System time zone is America/Los_Angeles, the user sees System (America/Los Angeles).
Java time zone class
- In the Type filter text field, enter sys_user.list.
- Open one of the user records in the listing.
- Right-click the time zone field and select Show
Choices.
The resulting list is a complete listing of available time zone IDs.
Time zones in email notifications
The glide.email.append.timezone property in controls whether to append the time zone. If set to true, the system time zone of the instance is appended to any dates or date/times in outbound email messages (for example, 2010-07-02 04:01:14 PST).
Time zones in service level agreements
Service level agreements have different options for which time zone to use. To set a time-zone for SLAs, navigate to the SLA definition and locate the Timezone source field:
- If you select the time zone for the caller, unpredictable behavior can occur if the caller does not have a time zone defined.
- If you select the time zone for the SLA definition, you must manual specify the time zone on the form for the SLA.
Time zone in scripting
When you create scripting on the server, the script uses several GlideSystem date and time functions to obtain time values. For more information about specific methods and to learn the format in which each returns the requested time, see the GlideSystem API.
Enhancements
DST enhancement requires that reports and queries observe Daylight Saving Time rules. Changes affect trend charts, line charts, and filters using the "trend on" operation.
Time zone changer
The time zone changer is active by default. Users can change their time zone for the current session in the system settings (the gear on the top right of the banner). At the next login, the time zone setting reverts to the system default, or user profile setting for time zone.