操作方法

操作方法:发布具有首选时区的要素服务

Last Published: January 5, 2024

摘要

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. 

过程

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 that you may need to append a token at the end of the URL
  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 
  } 
}
  1. Click Update Layer Definition.

文章 ID:000024927

从 ArcGIS 专家处获得帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项

相关信息

发现关于本主题的更多内容