Re: [Zope-dev] DateTime issues with negative offsets

2012-12-09 Thread Leonardo Rochael Almeida
Here's Guido's official explanation for the divmod behaviour: http://python-history.blogspot.com.br/2010/08/why-pythons-integer-division-floors.html IMHO we should treat negative offsets specially, doing the divmod() with -60 in that case. Regards, Leo On Fri, Dec 7, 2012 at 5:22 PM, Juan A. D

[Zope-dev] DateTime issues with negative offsets

2012-12-07 Thread Juan A. Diaz
Hi all, I found a issue with the DateTime module. For what I could see the functions _tzoffset2rfc822zone and _tzoffset2iso8601zone, that are used to return a zone specification, have problems with negative offset. This not happens with all the negative offset, just when the hour is not rounded an