Explorar el Código

fixes #30: datimes in UTC

Davide Alberani hace 7 años
padre
commit
26296974cb
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      ibt2.py

+ 1 - 1
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: