force conversion from datetime to str

This commit is contained in:
Davide Alberani 2017-10-15 16:30:09 +02:00
parent f4e6cdf0d0
commit 63be1801bf

View file

@ -53,7 +53,7 @@ def convert_obj(obj):
elif obj_l in ['false', 'off', 'no']:
return False
elif obj == '%NOW%':
return datetime.datetime.utcnow()
return str(datetime.datetime.utcnow())
return obj