utils.py
changeset 4012 f6c65e04704c
parent 3998 94cc7cad3d2d
parent 4000 4b16a7c01a25
child 4252 6c4f109c2b03
--- a/utils.py	Mon Dec 07 19:14:49 2009 +0100
+++ b/utils.py	Tue Dec 08 08:46:15 2009 +0100
@@ -411,7 +411,7 @@
             elif isinstance(obj, pydatetime.time):
                 return obj.strftime('%H:%M:%S')
             elif isinstance(obj, pydatetime.timedelta):
-                return '%10d.%s' % (obj.days, obj.seconds)
+                return (obj.days * 24 * 60 * 60) + obj.seconds
             elif isinstance(obj, decimal.Decimal):
                 return float(obj)
             try: