GridtNetwork / gridtlib

Core library for the gridt network
0 stars 0 forks source link

to_json is returning DateTime objects instead of timestamps for alot of Models #27

Closed AntoninThioux closed 1 year ago

AntoninThioux commented 1 year ago

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()), where time is the DateTime object.