Closed AntoninThioux closed 1 year ago
The method to_json(self) is badly implemented and should not be returning DateTime objects. See the following Models:
to_json(self)
To fix this use str(self.time.astimezone()), where time is the DateTime object.
str(self.time.astimezone())
time
The method
to_json(self)
is badly implemented and should not be returning DateTime objects. See the following Models:To fix this use
str(self.time.astimezone())
, wheretime
is the DateTime object.