[Zope3-checkins] CVS: Zope3/src/zope/app - datetimeutils.py:1.8
Guido van Rossum
guido@python.org
Thu, 24 Apr 2003 13:43:23 -0400
Update of /cvs-repository/Zope3/src/zope/app
In directory cvs.zope.org:/tmp/cvs-serv3096
Modified Files:
datetimeutils.py
Log Message:
Don't pass floats to _datetime().
=== Zope3/src/zope/app/datetimeutils.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/datetimeutils.py:1.7 Fri Apr 11 14:38:34 2003
+++ Zope3/src/zope/app/datetimeutils.py Thu Apr 24 13:43:22 2003
@@ -946,6 +946,6 @@
s, micro = divmod(s, 1.0)
micro = round(micro * 1000000)
offset = _tzoffset(tz, None) / 60
- return _datetime(y, mo, d, h, m, s, micro, tzinfo(offset))
+ return _datetime(y, mo, d, h, m, int(s), int(micro), tzinfo(offset))
_iso_tz_re = re.compile("[-+]\d\d:\d\d$")