--- 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)