Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Easy
Description
The Django REST Framework serializes dates to the ISO-8601 format, but it doesn't always include microseconds. This is because it relies on datetime.isoformat which only includes microseconds if microseconds are not 0. However, this behavior, that it sometimes and sometimes does not include microseconds, makes it challenging to parse the returned values.
For this task, I'll set the DATETIME_FORMAT settings in Django REST Framework to force always include microseconds.