<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CKAN: Ticket #2383: Date on add/edit resource breaks if offset is specified</title>
    <link>http://localhost/ticket/2383</link>
    <description></description>
    <language>en-us</language>
    <image>
      <title>CKAN</title>
      <url>http://assets.okfn.org/p/ckan/img/ckan_logo_shortname.png</url>
      <link>http://localhost/ticket/2383</link>
    </image>
    <generator>Trac 0.12.3</generator>
    <item>
      
        <dc:creator>icmurray</dc:creator>

      <pubDate>Wed, 16 May 2012 09:09:28 GMT</pubDate>
      <title>milestone changed; keywords set</title>
      <link>http://localhost/ticket/2383#comment:1</link>
      <guid isPermaLink="false">http://localhost/ticket/2383#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;keywords&lt;/strong&gt;
              &lt;em&gt;[0.5d]&lt;/em&gt; added
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;milestone&lt;/strong&gt;
                changed from &lt;em&gt;ckan-sprint-2012-05-15&lt;/em&gt; to &lt;em&gt;current-ckan-sprint-2012-05-29&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>icmurray</dc:creator>

      <pubDate>Thu, 24 May 2012 15:21:56 GMT</pubDate>
      <title></title>
      <link>http://localhost/ticket/2383#comment:2</link>
      <guid isPermaLink="false">http://localhost/ticket/2383#comment:2</guid>
      <description>
        &lt;p&gt;
This helper function won't parse UTC offset if passed a UTC offset as "+01:00"; but incorrectly parses the UTC offset "+0100" as 100 microseconds.
&lt;/p&gt;
&lt;p&gt;
Resolution:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;I've decided to keep the behaviour of not parsing UTC offsets because we currently don't store timezone information in the database; and I think that either dropping the tzinfo, or adjusting for it would appear to be "magic behaviour" from the user's perspective.  Also, as this is a helper function, I think it makes sense to keep the behaviour as is, even if it's slightly non-standard.
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
This fix &lt;a class="missing changeset" title="No default repository defined"&gt;[1]&lt;/a&gt; maintains all the old non-ISO behaviour:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;not allowing UTC offset to be specified.
&lt;/li&gt;&lt;li&gt;arbitrary delimiters between date and time values.
&lt;/li&gt;&lt;li&gt;microsecond precision.
&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;
But won't parse "+0100" as microsecond precision.
&lt;/p&gt;
&lt;p&gt;
I tried using a couple of python modules for parsing date strings; but none maintained the same behaviour.
&lt;/p&gt;
&lt;p&gt;
&lt;a class="missing changeset" title="No default repository defined"&gt;[1]&lt;/a&gt; &lt;a class="ext-link" href="https://github.com/okfn/ckan/commit/d6c9e48f8df5e926abd3fb1a1607f4f5a30075b4"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;https://github.com/okfn/ckan/commit/d6c9e48f8df5e926abd3fb1a1607f4f5a30075b4&lt;/a&gt;
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>icmurray</dc:creator>

      <pubDate>Mon, 28 May 2012 09:23:44 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>http://localhost/ticket/2383#comment:3</link>
      <guid isPermaLink="false">http://localhost/ticket/2383#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>