Use str in strptime for issue904

This commit is contained in:
Cédric Krier
2009-03-28 14:00:48 +01:00
parent 94b051861f
commit 651bb0ef70
+1 -1
View File
@@ -73,7 +73,7 @@ class ViewTreeModel(gtk.GenericTreeModel, gtk.TreeSortable):
display_format = date_format()
for obj in res_ids:
if obj[field]:
date = mx.DateTime.strptime(obj[field], DT_FORMAT)
date = mx.DateTime.strptime(str(obj[field]), DT_FORMAT)
obj[field] = date.strftime(display_format)
elif field_type in ('datetime',):
display_format = date_format() + ' ' + HM_FORMAT