server/sqlutils.py
branchtls-sprint
changeset 1026 4c097dbaf560
parent 1016 26387b836099
child 1132 96752791c2b6
--- a/server/sqlutils.py	Tue Mar 10 15:17:55 2009 +0100
+++ b/server/sqlutils.py	Tue Mar 10 15:18:04 2009 +0100
@@ -164,11 +164,11 @@
                     warn('found mx date time instance, please update to use datetime',
                          DeprecationWarning)
                     val = datetime(val.year, val.month, val.day,
-                                   val.hour, val.minute, val.second)
+                                   val.hour, val.minute, int(val.second))
                 elif type(val) is DateTimeDeltaType:
                     warn('found mx date time instance, please update to use datetime',
                          DeprecationWarning)
-                    val = timedelta(0, val.seconds, 0)
+                    val = timedelta(0, int(val.seconds), 0)
                 args[key] = val
             # should not collide
             args.update(query_args)