Select to view content in your preferred language

Mastering the Space Time Continuum 2.0. More about date fields

1789
3
06-27-2017 01:21 PM
KellyGerrow
Esri Alum
3 3 1,789

In my original blog post, Mastering the Space Time Continuum, Rule #1 stated: When viewing apps, the date/time field in your web service transforms from UTC to the time zone selected on your device clock.

Although this applies to most Web Apps, there are some common apps that don't follow this rule. This follow up blog will describe some of these exceptions and ways to check how the field is stored through the Rest Endpoint.

Rule #1 Exceptions:

Open Data sites do not perform any time transformations. Data is displayed and presented as it is stored in the Feature Service, UTC. If the data was transformed to UTC before publishing, the data will already be in UTC if you want to publish again.

ArcMap and ArcGIS Pro display and edit data as it is stored in the feature service, UTC if published according to the golden rules to appear correctly on the web. If performing edits on the service based data through ArcGIS Pro or ArcMap, ensure that you are entering date fields in UTC so they will appear correctly in your web application.

Time Data at REST

You can view how the date fields are stored by directly querying the Rest Endpoint. As you can see in the examples below, the compare web application transforms the data to the local time of the viewer. The Rest Endpoint and ArcGIS Pro pop-up have the same date and time displayed.

UTC Feature Service:

https://services5.arcgis.com/cuQhNeNcUrgLmYGD/ArcGIS/rest/services/SalemRoadWorkUTC/FeatureServer/0/...

Rest Response                                                                       Pro Pop up                     

       

Pacific Time Zone Feature Service (with DST adjustment enabled):

https://services5.arcgis.com/cuQhNeNcUrgLmYGD/ArcGIS/rest/services/SalemRoadWorkPacific/FeatureServe... 

Rest Response                                                                      Pro Pop up

    

3 Comments
About the Author
I love interactive maps and apps on the internet! The maps and apps that customers create and share on the web, make my job awesome. I'm a Product Manager with the ArcGIS Online team in Redlands, California. I am a proud graduate from Carleton University and the COGS in Canada, with research focus' in Health Geography. Originally from Bedford, NS, Canada but have spent a lot of time in Haliburton and Ottawa, Ontario. I have a passion for the outdoors and dogs.