fixes #30: datimes in UTC

This commit is contained in:
Davide Alberani 2017-02-12 11:59:42 +01:00
parent d693edcec7
commit 26296974cb

View file

@ -201,7 +201,7 @@ class BaseHandler(tornado.web.RequestHandler):
:returns: the updated document :returns: the updated document
:rtype: dict""" :rtype: dict"""
user_id = self.current_user user_id = self.current_user
now = datetime.datetime.now() now = datetime.datetime.utcnow()
if 'created_by' not in doc: if 'created_by' not in doc:
doc['created_by'] = user_id doc['created_by'] = user_id
if 'created_at' not in doc: if 'created_at' not in doc: