From 0a1bd6ab8d036d77e63ea8410711fe8c1e6986c1 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 12 Mar 2013 20:52:20 +0100 Subject: [PATCH] do not use microseconds --- d3mapbuilder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/d3mapbuilder.py b/d3mapbuilder.py index 8ffcf9e..1c8ee94 100644 --- a/d3mapbuilder.py +++ b/d3mapbuilder.py @@ -8,6 +8,9 @@ class D3MapBuilder: def build(self): output = dict() + now = datetime.datetime.utcnow() + now.microsecond = 0 + nodes = self._db.get_nodes() output['nodes'] = [{'name': x.name, 'id': x.id, @@ -25,7 +28,7 @@ class D3MapBuilder: } for x in links] output['meta'] = { - 'timestamp': datetime.datetime.utcnow().isoformat() + 'timestamp': now.isoformat() } return json.dumps(output)