You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2014/07/25 09:55:22 UTC

[19/28] git commit: [#7451] ticket:605 Use utcnow()

[#7451] ticket:605 Use utcnow()


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

Branch: refs/heads/je/42cc_7451
Commit: 12aaf70b702e3e6373c6da0fceacd8205ec42372
Parents: 798a40c
Author: Aleksey 'LXj' Alekseyev <go...@gmail.com>
Authored: Tue Jul 15 12:59:16 2014 +0300
Committer: Aleksey 'LXj' Alekseyev <go...@gmail.com>
Committed: Thu Jul 24 22:14:46 2014 +0300

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


http://git-wip-us.apache.org/repos/asf/allura/blob/12aaf70b/Allura/allura/lib/plugin.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
index cd8419d..051b795 100644
--- a/Allura/allura/lib/plugin.py
+++ b/Allura/allura/lib/plugin.py
@@ -142,7 +142,7 @@ class AuthenticationProvider(object):
             if self.is_password_expired(user):
                 self.session['pwd-expired'] = True
             if 'rememberme' in self.request.params:
-                self.session.cookie_expires = datetime.now() + timedelta(365)
+                self.session.cookie_expires = datetime.utcnow() + timedelta(365)
             else:
                 self.session.cookie_expires = True
             self.session.save()