Comment 5 for bug 885163

Revision history for this message
Ilya Novoselov (ilya-novoselov) wrote :

Timedelta does indeed allow value outside this range. But datetime doesn't allow dst delta of more than 24 hours, and for a reason. This is not dst change, this is timezone transition, and pytz computes utcoffset right. But dst is computed incorrectly, yelding value of 25 hours, while dst should really be same before and after transition (1 hour).