Merge lp:~cjwatson/pytz/smarter-utcoffset into lp:pytz
Status: | Needs review |
---|---|
Proposed branch: | lp:~cjwatson/pytz/smarter-utcoffset |
Merge into: | lp:pytz |
Diff against target: |
38 lines (+20/-3) 1 file modified
src/pytz/tzinfo.py (+20/-3) |
To merge this branch: | bzr merge lp:~cjwatson/pytz/smarter-utcoffset |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Stuart Bishop | Pending | ||
Review via email: mp+245472@code.launchpad.net |
Commit message
Use the most recent appropriate transition for DstTzInfo.
Description of the change
This fixes nonsensical _utcoffset values for various timezones that were constructed based on extremely old timezone transitions. The replacement algorithm here is much closer to what localtime() does. I've confirmed that this fixes the test failures from http://
Unmerged revisions
- 357. By Colin Watson
-
Use the most recent appropriate transition for DstTzInfo.
_utcoffset and friends, rather than the first transition which may be very old.