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

GitHub noreply at github.com
Mon May 28 09:18:12 UTC 2012


  Branch: refs/heads/master
  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.


  Commit: 70e58d4fab0c16b2f783d752352b1c3c6fb347cc
      https://github.com/okfn/ckan/commit/70e58d4fab0c16b2f783d752352b1c3c6fb347cc
  Author: Ian Murray <ian.murray at okfn.org>
  Date:   2012-05-28 (Mon, 28 May 2012)

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

  Log Message:
  -----------
  [2383] Adding descriptive message to ValueError

And added test that explicitely tests the second form of UTC offset.


  Commit: cb8c2ecf0d63f31fe2bcd878fb23aae1fe981102
      https://github.com/okfn/ckan/commit/cb8c2ecf0d63f31fe2bcd878fb23aae1fe981102
  Author: Ian Murray <ian.murray at okfn.org>
  Date:   2012-05-28 (Mon, 28 May 2012)

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

  Log Message:
  -----------
  Merge branch 'bug-2383-date-on-add-edit-resource-breaks-if-offset-is-specified'


Compare: https://github.com/okfn/ckan/compare/bb0806e...cb8c2ec


More information about the ckan-changes mailing list