We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bfa5a9 commit 549210bCopy full SHA for 549210b
rest_framework/utils/encoders.py
@@ -28,8 +28,6 @@ def default(self, obj):
28
return force_text(obj)
29
elif isinstance(obj, datetime.datetime):
30
representation = obj.isoformat()
31
- if obj.microsecond:
32
- representation = representation[:23] + representation[26:]
33
if representation.endswith('+00:00'):
34
representation = representation[:-6] + 'Z'
35
return representation
0 commit comments