incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [17/50] [abbrv] git commit: [5453] replace datetime.now with datetime.utcnow
Date Thu, 04 Apr 2013 18:37:19 GMT
[5453] replace datetime.now with datetime.utcnow


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

Branch: refs/heads/db/5453
Commit: 4c65ef1e7813f32e7cc5f53c3f71eda50e91f65f
Parents: c5dbe23
Author: Stefano Invernizzi <stefanoinve@apache.org>
Authored: Thu Jan 10 15:41:14 2013 +0100
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Apr 3 21:45:12 2013 +0000

----------------------------------------------------------------------
 ForgeUserStats/forgeuserstats/model/stats.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/4c65ef1e/ForgeUserStats/forgeuserstats/model/stats.py
----------------------------------------------------------------------
diff --git a/ForgeUserStats/forgeuserstats/model/stats.py b/ForgeUserStats/forgeuserstats/model/stats.py
index 6e9d063..c622888 100644
--- a/ForgeUserStats/forgeuserstats/model/stats.py
+++ b/ForgeUserStats/forgeuserstats/model/stats.py
@@ -431,7 +431,7 @@ class UserStats(MappedClass):
         return len(self.lastmonth.logins)
 
     def checkOldArtifacts(self):
-        now = datetime.now()
+        now = datetime.utcnow()
         for m in self.lastmonth.messages:
             if now - m.datetime > timedelta(30):
                 self.lastmonth.messages.remove(m)


Mime
View raw message