You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2013/05/14 20:03:34 UTC

[05/13] git commit: [#6212] Fixed datetime.now to datetime.utcnow

[#6212] Fixed datetime.now to datetime.utcnow

Signed-off-by: Cory Johns <cj...@slashdotmedia.com>


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

Branch: refs/heads/cj/5571
Commit: fdadc228381f5558c24f4e293829fea50ee19677
Parents: b20122d
Author: Cory Johns <cj...@slashdotmedia.com>
Authored: Mon May 13 22:22:00 2013 +0000
Committer: Cory Johns <cj...@slashdotmedia.com>
Committed: Mon May 13 22:22:00 2013 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/fdadc228/ForgeUserStats/forgeuserstats/tests/test_model.py
----------------------------------------------------------------------
diff --git a/ForgeUserStats/forgeuserstats/tests/test_model.py b/ForgeUserStats/forgeuserstats/tests/test_model.py
index dd77b32..cc67e27 100644
--- a/ForgeUserStats/forgeuserstats/tests/test_model.py
+++ b/ForgeUserStats/forgeuserstats/tests/test_model.py
@@ -418,7 +418,7 @@ class TestUserStats(unittest.TestCase):
         newcommit.tree.get_blob_by_path.return_value.__iter__.return_value = ['one']
         newcommit.repo.commit().tree.get_blob_by_path.return_value = mock.MagicMock()
         newcommit.repo.commit().tree.get_blob_by_path.return_value.__iter__.return_value = ['two']
-        commit_datetime = datetime.now()
+        commit_datetime = datetime.utcnow()
         project = mock.Mock(
                 trove_topic=[],
                 trove_language=[],