This commit is contained in:
rolux 2011-02-24 19:22:20 +00:00
commit 228c612fff
3 changed files with 9 additions and 8 deletions

View file

@ -375,6 +375,7 @@ class Item(models.Model):
i[key] = value
#format datetime values
# #FIXME: do this in render_tojson
for key in i:
if isinstance(i[key], datetime):
i[key] = i[key].strftime('%Y-%m-%dT%H:%M:%SZ')