]> git.ipfire.org Git - thirdparty/babel.git/commit
Fix the way local time is constructed in tests 411/head
authorIsaac Jurado <diptongo@gmail.com>
Sun, 29 May 2016 08:50:42 +0000 (10:50 +0200)
committerIsaac Jurado <diptongo@gmail.com>
Sun, 29 May 2016 09:37:55 +0000 (11:37 +0200)
commit476515c2418039e471656f47efbfc43e5230c1fd
treea476e3ea3c8f240683b7ebff79223c6e27ff04a5
parent8ebdac3cf6a46bfd848d84b6f9e5dea91e20e51c
Fix the way local time is constructed in tests

In summer time zones, the test for "get_timezone_name" failed because the
construct used to obtain a local time did not deal properly with DST offsets.
As recommended by pytz, it is better to convert to local time from UTC.
tests/test_dates.py