utils: fix flatten_datetime, isoformat() already add a timezone if needed

This commit is contained in:
Benjamin Dauvergne 2016-02-26 13:25:12 +01:00
parent 75382c9ab1
commit 4320f4fa78
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ def flatten_datetime(d):
d = d.copy()
for key, value in d.iteritems():
if isinstance(value, datetime.datetime):
d[key] = value.isoformat() + 'Z'
d[key] = value.isoformat()
return d