Add UTC flag to date strings

This commit is contained in:
Patrick Jentsch
2021-09-14 12:51:49 +02:00
parent 0a9bea0740
commit def01d474e
2 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ def ressource_after_update_handler(mapper, connection, ressource):
# In order to be JSON serializable, DateTime attributes must be
# converted to a string
if isinstance(new_value, datetime):
new_value = new_value.isoformat()
new_value = new_value.isoformat() + 'Z'
jsonpatch.append(
{
'op': 'replace',