Opened 13 years ago

Closed 13 years ago

#2460 closed defect (fixed)

datetime.datetime never gets processed in JSON serialization

Reported by: jyrki.pulliainen@… Owned by: Adrian Holovaty
Component: Core (Other) Version: master
Severity: normal Keywords: json datetime
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


This bug was originally reported by siniy (see: [link to userlist conversation in Google Groups])

When using JSON serialization, in function default in class DateTimeAwareJSONEncoder datetime.datetime never gets properly processed because datetime.datetime is a subclass of and isinstance(o, is True even in case of o being an instance of datetime.datetime.

Change History (1)

comment:1 Changed 13 years ago by Jacob

Resolution: fixed
Status: newclosed

(In [3501]) Fixed #2460 -- JSON serializer now correctly handles datetime objects. Thanks, siniy and jyrki.pulliainen@….

Note: See TracTickets for help on using tickets.
Back to Top