[Checkins] [zopefoundation/zope.i18n] 58051d: Fix incorrect usage of pytz

GitHub noreply at github.com
Mon May 19 17:24:56 CEST 2014


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zope.i18n
  Commit: 58051dcb365502a40f5a691af6a3b227638f350e
      https://github.com/zopefoundation/zope.i18n/commit/58051dcb365502a40f5a691af6a3b227638f350e
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2014-05-19 (Mon, 19 May 2014)

  Changed paths:
    M src/zope/i18n/tests/test_formats.py

  Log Message:
  -----------
  Fix incorrect usage of pytz

You're not supposed to use datetime.datetime(..., tzinfo=pytz.timezone(...))
because it will most likely use the wrong UTC offset.  This is
documented at http://pythonhosted.org//pytz/#localized-times-and-date-arithmetic




More information about the checkins mailing list