HOW TO

Publish a feature service with a preferred time zone

Last Published: January 5, 2024

Summary

As of ArcGIS Pro 2.7 and the December 2020 release of ArcGIS Online, it is possible to set a preferred time zone on a feature service with date fields. This alleviates the issue where date fields in a feature service appear in a different time zone when consumed in ArcGIS Pro compared to ArcGIS Online.

Procedure

The preferred time zone must be set on the service after it is published. To do so, add the preferredTimeReference parameter in the service definition following the steps below:

  1. Navigate to the updateDefinition operation at the feature service's admin endpoint. The URL is of the format:
https://<adminservicecatalog-url>/services/<serviceName>/FeatureServer/updateDefinition
Note:
Appending a token at the end of the URL may be required.
  1. Remove everything from the text box
  2. Copy and paste the following text to set the time zone for the service to Pacific Standard Time:
{ 
  "preferredTimeReference": { 
    "timeZone": "Pacific Standard Time", 
    "respectsDaylightSaving": true 
  } 
}
Note:
To set the time zone to a different zone, use the appropriate "Name of Time Zone" string from the Microsoft Time Zone Index Values.
  1. Click Update Layer Definition.

Article ID: 000024927

Software:
  • ArcGIS Online
  • ArcGIS Pro 3 1
  • ArcGIS Pro 3 0
  • ArcGIS Pro 2 7 x
  • ArcGIS Pro 3 2

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options