Select to view content in your preferred language

Date and Time field transposes wrong when shared from ArcPro to AGOL

500
2
Jump to solution
01-29-2025 10:41 AM
DryCreekEng
Frequent Contributor

I created a feature class in ArcPro that includes a Date and Time field. I also included a Date Only field even though ArcGIS Online doesnt like it. I have found that when I share the feature class as a Web Layer to AGOL the date will often be off by 1 day. I use the Date Only field to compare against the Date and Time field. It seems there is some time conversion that occurs and puts my dates 1 day later. Has anyone found a work-around for this? 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
DryCreekEng
Frequent Contributor

Thanks Chris, you are right. I also posted this on the ArcGIS Online Ideas page and received a few great posts with advice on how to set my layer's time zone before publishing. 

https://community.esri.com/t5/arcgis-online-ideas/allow-date-only-field-type-from-arcpro/idc-p/15809... 

View solution in original post

0 Kudos
2 Replies
ChrisUnderwood
Esri Regular Contributor

Hello @DryCreekEng , as a guess your Date & Time example "7/29/2022 5:00 PM" is in a USA timezone. But your Date is in UTC time. So 5:00 PM in your USA timezone is maybe 8 hours behind UTC where at that moment it is already 1:00 AM, but the next day. Thus the next day's Date is shown.

0 Kudos
DryCreekEng
Frequent Contributor

Thanks Chris, you are right. I also posted this on the ArcGIS Online Ideas page and received a few great posts with advice on how to set my layer's time zone before publishing. 

https://community.esri.com/t5/arcgis-online-ideas/allow-date-only-field-type-from-arcpro/idc-p/15809... 

0 Kudos