Skip to content

Commit 73f7d0c

Browse files
authored
Merge pull request #29 from OCA/17.0
Syncing from upstream OCA/rest-framework (17.0)
2 parents 6f120c5 + ad7e6b4 commit 73f7d0c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

base_rest/http.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def default(self, obj): # pylint: disable=E0202,arguments-differ
5353
return obj.isoformat()
5454
elif isinstance(obj, datetime.date):
5555
return obj.isoformat()
56+
elif isinstance(obj, datetime.time):
57+
return obj.isoformat()
5658
elif isinstance(obj, decimal.Decimal):
5759
return float(obj)
5860
return super(JSONEncoder, self).default(obj)

0 commit comments

Comments
 (0)