[ckan-changes] [okfn/ckan] d6c9e4: [2383] Properly convert microseconds in date_str_t...

GitHub noreply at github.com
Thu May 24 15:03:39 UTC 2012


  Branch: refs/heads/bug-2383-date-on-add-edit-resource-breaks-if-offset-is-specified
  Home:   https://github.com/okfn/ckan
  Commit: d6c9e48f8df5e926abd3fb1a1607f4f5a30075b4
      https://github.com/okfn/ckan/commit/d6c9e48f8df5e926abd3fb1a1607f4f5a30075b4
  Author: Ian Murray <ian.murray at okfn.org>
  Date:   2012-05-24 (Thu, 24 May 2012)

  Changed paths:
    M ckan/lib/helpers.py
    M ckan/tests/lib/test_helpers.py

  Log Message:
  -----------
  [2383] Properly convert microseconds in date_str_to_datetime helper.

Stop this helper function from incorrectly parsing a UTC offset "+0100" as
100 microseconds.

Now, if passed UTC offset as "+0100", this function will not parse the
timestamp.  The same behaviour as when it's passed "+01:00" as a UTC
offset.





More information about the ckan-changes mailing list