Browse Source

force conversion from datetime to str

Davide Alberani 4 years ago
parent
commit
63be1801bf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/qrcode_reader.py

+ 1 - 1
tools/qrcode_reader.py

@@ -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