incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [6/9] git commit: [#4595] ticket:421 Use utcnow() instead of now()
Date Wed, 04 Sep 2013 13:20:26 GMT
[#4595] ticket:421 Use utcnow() instead of now()


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/91c7a3aa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/91c7a3aa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/91c7a3aa

Branch: refs/heads/master
Commit: 91c7a3aa891c0ee60a83d5870131abc03a360385
Parents: 815940c
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Mon Sep 2 13:08:32 2013 +0300
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Wed Sep 4 13:19:55 2013 +0000

----------------------------------------------------------------------
 Allura/allura/controllers/site_admin.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/91c7a3aa/Allura/allura/controllers/site_admin.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/site_admin.py b/Allura/allura/controllers/site_admin.py
index eacf105..b5fa97a 100644
--- a/Allura/allura/controllers/site_admin.py
+++ b/Allura/allura/controllers/site_admin.py
@@ -192,7 +192,7 @@ class SiteAdminController(object):
             end_dt = datetime.strptime(end_dt, '%Y/%m/%d %H:%M:%S')
         except ValueError:
             end_dt = None
-        start_dt = datetime.now() if not start_dt else start_dt
+        start_dt = datetime.utcnow() if not start_dt else start_dt
         end_dt = start_dt - timedelta(days=3) if not end_dt else end_dt
         start = bson.ObjectId.from_datetime(start_dt)
         end = bson.ObjectId.from_datetime(end_dt)


Mime
View raw message