操作方法

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

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

接收通知并查找新问题或常见问题的解决方案

从我们全新的 AI 聊天机器人中获得简明答案和视频解决方案。

下载 Esri 支持应用程序

相关信息

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项