Skip to content

Commit

Permalink
Don't strip microseconds in JSON output. (#4256)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchristie authored Jul 11, 2016
1 parent 7bfa5a9 commit 549210b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rest_framework/utils/encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ def default(self, obj):
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
Expand Down

0 comments on commit 549210b

Please sign in to comment.