introlab / opentera

OpenTera - Open TeleRehabilitation Server and Micro-Services
https://github.com/introlab/opentera
Apache License 2.0
17 stars 9 forks source link

BaseMixin - to_json - Support "Date" columns #239

Closed SBriere closed 9 months ago

SBriere commented 9 months ago

Describe the bug Currently, when we have a column of type "DATE", it is not properly serialized by the method "to_json" in the BaseMixin class.

Expected behavior As currently done with datetime objects (or columns of type "TIMESTAMP"), the data should be string serialized (in isoformat or with a known date format).