[ckan-changes] [ckan/ckan] f19a60: [#2228] Fix render_datetime error for year before ...

GitHub noreply at github.com
Wed Jun 28 15:36:40 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/ckan/ckan
  Commit: f19a60cb81e0412642a67c9bc7212e3f36bb8d9e
      https://github.com/ckan/ckan/commit/f19a60cb81e0412642a67c9bc7212e3f36bb8d9e
  Author: Aleksandar Jovanov <aleksandar.jovanov at keitaro.com>
  Date:   2017-06-16 (Fri, 16 Jun 2017)

  Changed paths:
    M ckan/lib/helpers.py

  Log Message:
  -----------
  [#2228] Fix render_datetime error for year before 1900

There is a bug in Python in datetime.strftime where if a passed year is before 1900 it will raise a ValueError


  Commit: a36de4945e11e6a639a6d323b314e9553e8e9fc9
      https://github.com/ckan/ckan/commit/a36de4945e11e6a639a6d323b314e9553e8e9fc9
  Author: Aleksandar Jovanov <aleksandar.jovanov at keitaro.com>
  Date:   2017-06-16 (Fri, 16 Jun 2017)

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

  Log Message:
  -----------
  [#2228] Add additional test for render_datetime


  Commit: 05578c8745cf767950c7bb14f0a48c0b76e9116e
      https://github.com/ckan/ckan/commit/05578c8745cf767950c7bb14f0a48c0b76e9116e
  Author: Aleksandar Jovanov <aleksandar.jovanov at keitaro.com>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

  Changed paths:
    M ckan/lib/helpers.py

  Log Message:
  -----------
  [#2228] Use regexp to replace year


  Commit: 964eae72a3014232e5860042a9bc016edfbebab7
      https://github.com/ckan/ckan/commit/964eae72a3014232e5860042a9bc016edfbebab7
  Author: Aleksandar Jovanov <aleksandar.jovanov at keitaro.com>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

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

  Log Message:
  -----------
  [#2228] Add additional test for render_datetime


  Commit: 5d62192324429abf32c5d65be127db37400aba20
      https://github.com/ckan/ckan/commit/5d62192324429abf32c5d65be127db37400aba20
  Author: Ian Ward <ian at excess.org>
  Date:   2017-06-28 (Wed, 28 Jun 2017)

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

  Log Message:
  -----------
  Merge pull request #3611 from klikstermkd/2228-render-datetime-year-before-1900

Fix render_datetime for dates before year 1900


Compare: https://github.com/ckan/ckan/compare/f123e184e519...5d6219232442


More information about the ckan-changes mailing list