<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea ArcGIS Server to return non UTC dates in mapservice REST endpoints in ArcGIS Enterprise Ideas</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-ideas/arcgis-server-to-return-non-utc-dates-in/idi-p/937600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;Hi Everyone,&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;BR /&gt;&lt;FONT color="#000000" face="Verdana, Arial, Helvetica, sans-serif"&gt;I initially logged this with ESRI AU support and even though they said that they had other customers with similar issues, the only resolution was for me to log the issue here as a "requested enhancement".&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000" face="Verdana, Arial, Helvetica, sans-serif"&gt;Here is the issue.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;We have data in a sqlserver/ArcSDE database that has a datetime field that does not contain a timezone.&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;IMG id="Picture_x0020_1" alt="cid:image002.png@01CFC851.D03368D0" height="341" src="http://sd.lan/inlineimages/WorkOrder/12168/1.png" width="745" __migration_external="true" /&gt;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;In ArcGIS Catalogue it displays correctly&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;IMG id="Picture_x0020_4" height="267" src="http://sd.lan/inlineimages/WorkOrder/12168/2.png" width="1131" __migration_external="true" /&gt;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;And you can select within the data ranges ok in Desktop&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;IMG id="Picture_x0020_7" height="769" src="http://sd.lan/inlineimages/WorkOrder/12168/3.png" width="1208" __migration_external="true" /&gt;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;But when a mapservice is published containing the data it is returned via the rest endpoint as milliseconds relative to a timezone – UTC 0.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;So when you convert the milliseconds to the a date it returns the wrong date and time as it is adding the timezone of the local data ie +10hrs&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;IMG id="Picture_x0020_17" alt="cid:image006.png@01CFC853.58672830" height="884" src="http://sd.lan/inlineimages/WorkOrder/12168/4.png" width="276" __migration_external="true" /&gt;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;IMG id="Picture_x0020_20" alt="cid:image007.png@01CFC853.BB316110" height="200" src="http://sd.lan/inlineimages/WorkOrder/12168/5.png" width="500" __migration_external="true" /&gt;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;Which is the incorrect date in the above example.&lt;BR /&gt;&lt;BR /&gt;There should be a way to publish a mapservice so that when the date/time field is returned, the timezone offset is not added to the raw database value. &amp;nbsp;We need the data as per what is stored in the database.&amp;nbsp; The data is stored in the database as local time so it essentially has the offset already included and then the mapservice is adding an additional offset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000" face="Verdana, Arial, Helvetica, sans-serif"&gt;There should be a mapserver option for dates to be publised in local time or UTC.&lt;/FONT&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;Steve&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;BR /&gt;

&lt;!-- content transformation source ID: 087E00000005Fsh --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Sep 2014 23:12:12 GMT</pubDate>
    <dc:creator>GISAdmin9</dc:creator>
    <dc:date>2014-09-16T23:12:12Z</dc:date>
    <item>
      <title>ArcGIS Server to return non UTC dates in mapservice REST endpoints</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/arcgis-server-to-return-non-utc-dates-in/idi-p/937600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;Hi Everyone,&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;BR /&gt;&lt;FONT color="#000000" face="Verdana, Arial, Helvetica, sans-serif"&gt;I initially logged this with ESRI AU support and even though they said that they had other customers with similar issues, the only resolution was for me to log the issue here as a "requested enhancement".&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000" face="Verdana, Arial, Helvetica, sans-serif"&gt;Here is the issue.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;We have data in a sqlserver/ArcSDE database that has a datetime field that does not contain a timezone.&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;IMG id="Picture_x0020_1" alt="cid:image002.png@01CFC851.D03368D0" height="341" src="http://sd.lan/inlineimages/WorkOrder/12168/1.png" width="745" __migration_external="true" /&gt;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;In ArcGIS Catalogue it displays correctly&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;IMG id="Picture_x0020_4" height="267" src="http://sd.lan/inlineimages/WorkOrder/12168/2.png" width="1131" __migration_external="true" /&gt;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;And you can select within the data ranges ok in Desktop&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;IMG id="Picture_x0020_7" height="769" src="http://sd.lan/inlineimages/WorkOrder/12168/3.png" width="1208" __migration_external="true" /&gt;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;But when a mapservice is published containing the data it is returned via the rest endpoint as milliseconds relative to a timezone – UTC 0.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;So when you convert the milliseconds to the a date it returns the wrong date and time as it is adding the timezone of the local data ie +10hrs&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;IMG id="Picture_x0020_17" alt="cid:image006.png@01CFC853.58672830" height="884" src="http://sd.lan/inlineimages/WorkOrder/12168/4.png" width="276" __migration_external="true" /&gt;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;&lt;IMG id="Picture_x0020_20" alt="cid:image007.png@01CFC853.BB316110" height="200" src="http://sd.lan/inlineimages/WorkOrder/12168/5.png" width="500" __migration_external="true" /&gt;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;Which is the incorrect date in the above example.&lt;BR /&gt;&lt;BR /&gt;There should be a way to publish a mapservice so that when the date/time field is returned, the timezone offset is not added to the raw database value. &amp;nbsp;We need the data as per what is stored in the database.&amp;nbsp; The data is stored in the database as local time so it essentially has the offset already included and then the mapservice is adding an additional offset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT color="#000000" face="Verdana, Arial, Helvetica, sans-serif"&gt;There should be a mapserver option for dates to be publised in local time or UTC.&lt;/FONT&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;SPAN style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;"&gt;Steve&amp;nbsp;&lt;/SPAN&gt;&lt;BR style="color: rgb(0, 0, 0); font-family: Verdana, Arial, Helvetica, sans-serif;" /&gt;
&lt;BR /&gt;

&lt;!-- content transformation source ID: 087E00000005Fsh --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 23:12:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/arcgis-server-to-return-non-utc-dates-in/idi-p/937600</guid>
      <dc:creator>GISAdmin9</dc:creator>
      <dc:date>2014-09-16T23:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server to return non UTC dates in mapservice REST endpoints</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/arcgis-server-to-return-non-utc-dates-in/idc-p/937601#M877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;We have the same problem. We have datetime columns in our SQL Server database that do not use UTC. When using these in an ArcGIS Server map service, they are interpreted as UTC, and are off by 8 hours.

&lt;!-- content transformation source ID: 00aE0000009sKMo --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Feb 2015 22:48:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/arcgis-server-to-return-non-utc-dates-in/idc-p/937601#M877</guid>
      <dc:creator>DavidFriedrich</dc:creator>
      <dc:date>2015-02-02T22:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server to return non UTC dates in mapservice REST endpoints</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/arcgis-server-to-return-non-utc-dates-in/idc-p/937602#M878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;I have the exact same issue.&lt;BR /&gt;Time is relative to wherever you are at and I am in the US Central time zone!!&lt;BR /&gt;Not UTC!

&lt;!-- content transformation source ID: 00aE000000I8iDs --&gt;

&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 17:48:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/arcgis-server-to-return-non-utc-dates-in/idc-p/937602#M878</guid>
      <dc:creator>AaronCohen</dc:creator>
      <dc:date>2016-04-04T17:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server to return non UTC dates in mapservice REST endpoints</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/arcgis-server-to-return-non-utc-dates-in/idc-p/937603#M879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are dealing with the same issue here as well which is beyond annoying to say the least.&amp;nbsp; I'm hoping ESRI addresses this as well.&amp;nbsp; Just wanted to add my frustration along with the others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 17:00:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/arcgis-server-to-return-non-utc-dates-in/idc-p/937603#M879</guid>
      <dc:creator>JohnRitsko</dc:creator>
      <dc:date>2016-06-14T17:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server to return non UTC dates in mapservice REST endpoints - Status changed to: Implemented</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/arcgis-server-to-return-non-utc-dates-in/idc-p/1117135#M2648</link>
      <description>&lt;P&gt;Ran into this old idea.&lt;/P&gt;&lt;P&gt;Since there are some recent enhancements made in that area, I thought I should put that info here for future readers, and close it.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;as you know as per REST API specs (&lt;EM&gt;until we made some amendments in recent releases&lt;/EM&gt;), date/time values are passed around in UTC.&lt;/LI&gt;&lt;LI&gt;to make sure map/feature services return correct date/time values in a query response by applying the correct time zone conversion, you must set the Date Fields Time Zone in service properties.&lt;UL&gt;&lt;LI&gt;you can do that in the Server Manager site or in sharing/publishing pane from ArcGIS Pro or ArcMap.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;that's said there are some cases where you can't apply a single time zone when you have date/time values from multiple time zone. Also, it is rare but it does happen -- due to lack of historic time zone support in Windows Time libraries, you don't get the correct results.&lt;UL&gt;&lt;LI&gt;that is when you can set the service time zone to "Unknown"&lt;/LI&gt;&lt;LI&gt;please read this blog article for more info:&amp;nbsp;&lt;A href="https://bit.ly/3nm3pLi" target="_blank"&gt;https://bit.ly/3nm3pLi&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 16 Nov 2021 07:05:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/arcgis-server-to-return-non-utc-dates-in/idc-p/1117135#M2648</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2021-11-16T07:05:08Z</dc:date>
    </item>
  </channel>
</rss>

