Instrução

Publicar um serviço da feição com um fuso horário preferencial

Last Published: January 5, 2024

Resumo

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. 

Procedimento

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 do Artigo: 000024927

Obtenha suporte com IA

Resolva seu problema rapidamente com o chatbot de IA de suporte da Esri.

Comece a conversar agora

Informações Relacionadas

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Comece a conversar agora

Ir para as opções de download