JenniferNery
Esri Regular Contributor

The dates are read and stored in UTC.

If you want dates displayed in local time, you can use `DateTimeOffset.ToLocalTime()` to convert the date attribute (in UTC)

((DateTimeOffset)f.Attributes["created_date"]).ToLocalTime()

And if you are querying for features and have local time as input, convert this first to UTC before setting query parameters.

var ld = DateTimeOffset.Parse("11/20/2018 12:47:03 PM -08:00");
p.WhereClause =$"created_date = '{ld.ToUniversalTime()}'";

Was there a specific sync scenario where you don't find this to be working as expected?

0 Kudos