Dates in ArcGIS Online

9444
10
04-07-2015 01:41 PM
LakshmiSankaran
Occasional Contributor

I am noticing that a date e.g. 4/6/2015, entered in a SDE Feature Class (SQL 2008 R2) is translating to the day before in ArcGIS Online. The date field being a date-time field, and entered in as 4/6/2015 WITHOUT the time, is defaulting to 4/6/2015 12 am which is translating in an ArcGIS online map as 4/5/2015. Has anyone else noticed this?

Thanks

Lakshmi Sankaran

SDE Admin

Tags (2)
10 Replies
EdApalinski
Occasional Contributor

Hi, the basic issue is time is published as UTM and then converted by the browser to local time.  If the time is not defined arcgis assumes midnight UTM.  For example if I publish a date of 11/1/2019 EST, the server will defaults that time to 11/1/2019 12:00 AM UTM, so when a web map looks at the time, the local browser converts it to EST by subtracting 4 hours, so you get 10/31/2019 8:00 PM.  

I am not sure of the best work around for hosted layers with more than 1 date field (the time property can be set in the layer properties for a single field).

If you are publishing the service with arcgis server there is a way to set the local time so REST service dates will be converted properly by the browser.  Here is a link to a tech support doc click How To: Set the UTC time field to follow a specific time zone

Best!

0 Kudos