Message149046
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()) |
|
Date |
User |
Action |
Args |
2011-12-08 17:23:11 | exarkun | set | recipients:
+ exarkun |
2011-12-08 17:23:11 | exarkun | set | messageid: <1323364991.44.0.541305100354.issue13556@psf.upfronthosting.co.za> |
2011-12-08 17:23:10 | exarkun | link | issue13556 messages |
2011-12-08 17:23:10 | exarkun | create | |
|