mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-23 06:20:34 +00:00
Add UTC flag to date strings
This commit is contained in:
@ -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',
|
||||
|
Reference in New Issue
Block a user