Commit 57474e7c authored by Kedar Aitawdekar's avatar Kedar Aitawdekar 💻

Object, JSON encoding, including microseconds in output, which were ommited earlier

parent 9b78e345
......@@ -6,7 +6,7 @@ class NodeJSONEncoder(json.JSONEncoder):
return str(o)
if isinstance(o, datetime.datetime):
return o.strftime("%d/%m/%Y %H:%M:%S")
return o.strftime("%d/%m/%Y %H:%M:%S:%f")
return json.JSONEncoder.default(self, o)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment