Commit e4aad759 authored by Romain Courteaud's avatar Romain Courteaud Committed by Kazuhiko Shiozaki

erp5_hal_json_style: export DateTime parameters

parent 4f681f83
......@@ -93,6 +93,8 @@ def toBasicTypes(obj):
return tuple(toBasicTypes(x) for x in obj)
if isinstance(obj, Message):
return obj.translate()
if isinstance(obj, DateTime):
return obj.rfc822()
try:
return {toBasicTypes(key): toBasicTypes(obj[key]) for key in obj}
except Exception:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment