<?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>topic Re: Date Conversion Problems REST&amp;lt;-&amp;gt;Silverlight in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586697#M15025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your post.&amp;nbsp; We were able to reproduce the issue and have identified the cause.&amp;nbsp; We will try to get the fix in for the future release.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Nov 2010 18:07:26 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2010-11-05T18:07:26Z</dc:date>
    <item>
      <title>Date Conversion Problems REST&amp;lt;-&amp;gt;Silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586694#M15022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've recently started using FeatureDataForm (ArcGIS Silverlight 2.0 API) and I'm getting problems with editing Date fields.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Everytime a user picks a Date, and Apply the edits the Date field is saved in the Database with one day difference (all the components are installed in the same machine).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is most probably due to the difference between UTC time and New Zealand Time (UTC+12h).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that the REST API for editing features uses UTC date time values, and I have some tests which&amp;nbsp; confirm that calling directly the REST UpdateFeatures operation works fine, therefore the problem must be in the Silverlight API. The Flex API also has the same problem, but we have found a way to solve it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know a workaround for this issue in ESRI Silverlight API 2.0 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tito Moreira&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eagle Tech Group, GIS Professional Services&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 01:06:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586694#M15022</guid>
      <dc:creator>TitoMoreira</dc:creator>
      <dc:date>2010-11-05T01:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion Problems REST&lt;-&gt;Silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586695#M15023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you run Fiddler to see what date parameter it sends to the service? Kindly check post #14 on this thread &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/14730-Area-And-Perimeter"&gt;http://forums.arcgis.com/threads/14730-Area-And-Perimeter&lt;/A&gt;&lt;SPAN&gt;. It should be similar approach in that when you run your SL app, grab the parameters from Fiddler.&amp;nbsp; We will also check our end if we are doing something to the Date values.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 06:16:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586695#M15023</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-05T06:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion Problems REST&lt;-&gt;Silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586696#M15024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sure, no prob.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the updates parameter of the REST Request:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[{"attributes":{"OBJECTID":403,"CLAIM_ID":"CLM/2010/067368","INSPECT_DATE":1288522800000,"LOSS_ADJUSTER":8,"ESTIMATOR":7,"HAS_REPAIR_COMMENCED":1,"REPAIRER_NAME":null,"REPAIR_BEGIN_DATE":null,"REPAIR_END_DATE":null}}]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just take a look at the INSPECT_DATE value. I chose 1 of November of 2010 in the DatePicker of the FeatureDataForm and the value stored in the database and sent in the request is 31/10/2010 (12 or 13 hours less).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the Silverlight API (&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ArcGISJsonWriter.GraphicsToFeatureServiceJson&lt;/SPAN&gt;&lt;SPAN&gt; method) isn't converting the DateTime value correctly or MapService.Epoch doesn't have the correct 1970/1/1 DateTime value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tito Moreira&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 06:32:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586696#M15024</guid>
      <dc:creator>TitoMoreira</dc:creator>
      <dc:date>2010-11-05T06:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion Problems REST&lt;-&gt;Silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586697#M15025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your post.&amp;nbsp; We were able to reproduce the issue and have identified the cause.&amp;nbsp; We will try to get the fix in for the future release.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 18:07:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586697#M15025</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-05T18:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion Problems REST&lt;-&gt;Silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586698#M15026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I installed the Silverlight 2.2 API but didn't notice this being corrected.&amp;nbsp; Do you know when this bug will be fixed?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 20:10:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586698#M15026</guid>
      <dc:creator>JeffRogholt</dc:creator>
      <dc:date>2011-06-28T20:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion Problems REST&lt;-&gt;Silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586699#M15027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any news about this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I Am also intrested to know when this issue can be fixed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2011 10:14:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586699#M15027</guid>
      <dc:creator>ArneDahlman</dc:creator>
      <dc:date>2011-08-16T10:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion Problems REST&lt;-&gt;Silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586700#M15028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thank you for your post.&amp;nbsp; We were able to reproduce the issue and have identified the cause.&amp;nbsp; We will try to get the fix in for the future release.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How about an update on this ESRI? It's been over a year now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nevermind. The problem lies in the DateTime.Kind = "Unspecified" being mistaken for Local when doing a conversion to UTC when in fact the DateTime is already in UTC. The DatePicker changes the DateSelected.Kind to "Unspecified". My workaround was to put in a converter when binding to datepicker that converts the DateSelected to UTC with no time changing. Sad really.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2011 16:34:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586700#M15028</guid>
      <dc:creator>RobChouinard</dc:creator>
      <dc:date>2011-11-09T16:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion Problems REST&lt;-&gt;Silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586701#M15029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;API 2.4&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is still there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any info when this can be fixed?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 12:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586701#M15029</guid>
      <dc:creator>ArneDahlman</dc:creator>
      <dc:date>2012-02-07T12:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion Problems REST&lt;-&gt;Silverlight</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586702#M15030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This problem also exist in the FeatureDataGrid. The problem in general is with the Microsoft datapicker creating DateTimeKind.Unspecified and the Database queries returning DateTimeKind.UTC which creates a bad user experience. We will be addressing this issue in FeatureDataGrid and FeatureDataForm.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/32404-DateTime-wrong-after-FeatureService-Editing"&gt;http://forums.arcgis.com/threads/32404-DateTime-wrong-after-FeatureService-Editing&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2012 16:51:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/date-conversion-problems-rest-amp-lt-amp-gt/m-p/586702#M15030</guid>
      <dc:creator>ChristopherHill</dc:creator>
      <dc:date>2012-02-07T16:51:16Z</dc:date>
    </item>
  </channel>
</rss>

