From 63be1801bf257fc3ee72dad5019ec0fcf35bb449 Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 15 Oct 2017 16:30:09 +0200 Subject: [PATCH] force conversion from datetime to str --- tools/qrcode_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qrcode_reader.py b/tools/qrcode_reader.py index 798b1d1..152f3ba 100755 --- a/tools/qrcode_reader.py +++ b/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