Message149046
| 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: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 |
|