CÓMO

Publicar un servicio de entidades con una zona horaria preferida

Last Published: January 5, 2024

Resumen

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. 

Procedimiento

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. de artículo:000024927

Obtener ayuda de expertos en ArcGIS

Contactar con soporte técnico

Descargar la aplicación de soporte de Esri

Ir a las opciones de descarga

Información relacionada

Descubrir más sobre este tema