From 4320f4fa788482e91c7ba129c6c857d0a9dbe2ad Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 26 Feb 2016 13:25:12 +0100 Subject: [PATCH] utils: fix flatten_datetime, isoformat() already add a timezone if needed --- mellon/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mellon/utils.py b/mellon/utils.py index f98f040..edcba6f 100644 --- a/mellon/utils.py +++ b/mellon/utils.py @@ -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