From 26296974cb2205ab6d882275237adaf03c5f59dc Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 12 Feb 2017 11:59:42 +0100 Subject: [PATCH] fixes #30: datimes in UTC --- ibt2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibt2.py b/ibt2.py index 570b5e8..05b3cd1 100755 --- a/ibt2.py +++ b/ibt2.py @@ -201,7 +201,7 @@ class BaseHandler(tornado.web.RequestHandler): :returns: the updated document :rtype: dict""" user_id = self.current_user - now = datetime.datetime.now() + now = datetime.datetime.utcnow() if 'created_by' not in doc: doc['created_by'] = user_id if 'created_at' not in doc: