소스 검색

fixes #30: datimes in UTC

Davide Alberani 7 년 전
부모
커밋
26296974cb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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: