[Zope-Checkins] CVS: Zope/lib/python/DateTime - DateTime.py:1.96
Kiran Jonnalagadda
jace at pobox.com
Thu Dec 11 08:40:38 EST 2003
Update of /cvs-repository/Zope/lib/python/DateTime
In directory cvs.zope.org:/tmp/cvs-serv32489
Modified Files:
DateTime.py
Log Message:
Fixed bug with fractional timezones being rounded off due to an integer divide.
=== Zope/lib/python/DateTime/DateTime.py 1.95 => 1.96 ===
--- Zope/lib/python/DateTime/DateTime.py:1.95 Thu Dec 11 08:13:51 2003
+++ Zope/lib/python/DateTime/DateTime.py Thu Dec 11 08:40:37 2003
@@ -279,7 +279,7 @@
localzone = altzone
else:
localzone = timezone
- offset=(-localzone/(60*60))
+ offset=(-localzone/(60*60.0))
majorOffset=int(offset)
if majorOffset != 0 :
minorOffset=abs(int((offset % majorOffset) * 60.0))
More information about the Zope-Checkins
mailing list