This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author exarkun
Recipients exarkun
Date 2011-12-08.17:23:10
SpamBayes Score 4.2407268e-07
Marked as misclassified No
Message-id <1323364991.44.0.541305100354.issue13556@psf.upfronthosting.co.za>
In-reply-to
Content
When a timezone produces an out-of-bounds utc offset, the resulting exception always claims that the offset was 1440, rather than whatever it was.  Example:

from datetime import timedelta, datetime, tzinfo

class X(tzinfo):
    def utcoffset(self, time):
        return timedelta(days=2)

datetime.now(tz=X())
History
Date User Action Args
2011-12-08 17:23:11exarkunsetrecipients: + exarkun
2011-12-08 17:23:11exarkunsetmessageid: <1323364991.44.0.541305100354.issue13556@psf.upfronthosting.co.za>
2011-12-08 17:23:10exarkunlinkissue13556 messages
2011-12-08 17:23:10exarkuncreate