Commit 549210b5 by Tom Christie Committed by GitHub

Don't strip microseconds in JSON output. (#4256)

parent 7bfa5a91
......@@ -28,8 +28,6 @@ class JSONEncoder(json.JSONEncoder):
return force_text(obj)
elif isinstance(obj, datetime.datetime):
representation = obj.isoformat()
if obj.microsecond:
representation = representation[:23] + representation[26:]
if representation.endswith('+00:00'):
representation = representation[:-6] + 'Z'
return representation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment