<?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: Problem related dates. SDK changes dates to -3 hours everytime in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/problem-related-dates-sdk-changes-dates-to-3-hours/m-p/418512#M5023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay I ask this more detailed. So Esri SDK makes all date values to UTC datetime. Why SDK doesn't convert those values back to related timezone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example I save value (UI) : 1.1.2000 0:00 GMT+3 -&amp;gt; Database its 31.12.1999 21:00 (Problem is bigger if DB field is on DATE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why SDK returns that 31.12.1999 21:00 not 1.1.2000 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 05:05:46 GMT</pubDate>
    <dc:creator>MarkoKangas</dc:creator>
    <dc:date>2015-04-21T05:05:46Z</dc:date>
    <item>
      <title>Problem related dates. SDK changes dates to -3 hours everytime</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/problem-related-dates-sdk-changes-dates-to-3-hours/m-p/418510#M5021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have problem related datetime. If I try to save date to 20.4.2015 0:00:00 it goes to database 19.04.2015.21:00:00.&lt;/P&gt;&lt;P&gt;Somehow SDK changes datetime to -3 hour. (My timezone is +3h to UTC)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where I can change this behaviour? Any tips?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 13:34:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/problem-related-dates-sdk-changes-dates-to-3-hours/m-p/418510#M5021</guid>
      <dc:creator>MarkoKangas</dc:creator>
      <dc:date>2015-04-20T13:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem related dates. SDK changes dates to -3 hours everytime</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/problem-related-dates-sdk-changes-dates-to-3-hours/m-p/418511#M5022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The database uses UTC so that sounds about right. You can convert DateTime objects between UTC and Local using the .NET Datetime API.&lt;/P&gt;&lt;P&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/system.datetime.tolocaltime(v=vs.110).aspx" title="https://msdn.microsoft.com/en-us/library/system.datetime.tolocaltime(v=vs.110).aspx"&gt;DateTime.ToLocalTime Method&amp;nbsp; (System)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://msdn.microsoft.com/en-us/library/system.datetime.touniversaltime(v=vs.110).aspx" title="https://msdn.microsoft.com/en-us/library/system.datetime.touniversaltime(v=vs.110).aspx"&gt;DateTime.ToUniversalTime Method&amp;nbsp; (System)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also make sure you specify the DateTime.Kind correctly when creating the DateTime object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 21:08:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/problem-related-dates-sdk-changes-dates-to-3-hours/m-p/418511#M5022</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2015-04-20T21:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem related dates. SDK changes dates to -3 hours everytime</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/problem-related-dates-sdk-changes-dates-to-3-hours/m-p/418512#M5023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay I ask this more detailed. So Esri SDK makes all date values to UTC datetime. Why SDK doesn't convert those values back to related timezone?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example I save value (UI) : 1.1.2000 0:00 GMT+3 -&amp;gt; Database its 31.12.1999 21:00 (Problem is bigger if DB field is on DATE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why SDK returns that 31.12.1999 21:00 not 1.1.2000 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 05:05:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/problem-related-dates-sdk-changes-dates-to-3-hours/m-p/418512#M5023</guid>
      <dc:creator>MarkoKangas</dc:creator>
      <dc:date>2015-04-21T05:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem related dates. SDK changes dates to -3 hours everytime</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/problem-related-dates-sdk-changes-dates-to-3-hours/m-p/418513#M5024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;31.12.1999 21:00 UTC is the exact same date as 01.01.2000 00:00 GMT+3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's the job of the app you build do input and output dates in the appropriate time zone for that app.&lt;/P&gt;&lt;P&gt;This is just how .NET handles dates - The Runtime ensures time zones doesn't cause dates across timezones to get mixed up by always saving in UTC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 05:18:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/problem-related-dates-sdk-changes-dates-to-3-hours/m-p/418513#M5024</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2015-04-21T05:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem related dates. SDK changes dates to -3 hours everytime</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/problem-related-dates-sdk-changes-dates-to-3-hours/m-p/418514#M5025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay -&amp;gt; Esri SDK default behaviour to unspecified Kind is UTC. Thats good to know &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 05:20:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/problem-related-dates-sdk-changes-dates-to-3-hours/m-p/418514#M5025</guid>
      <dc:creator>MarkoKangas</dc:creator>
      <dc:date>2015-04-21T05:20:48Z</dc:date>
    </item>
  </channel>
</rss>

