Permalink
Browse files

Merge pull request #28 from simonz05/patch-1

use UTC for cookie expire instead of local time
  • Loading branch information...
2 parents 84a1ce4 + 5c02e6d commit 1aef46bcd45a69dc62cf496bebca7e97ceb30aea @leafstorm leafstorm committed Jul 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 flask_login.py
View
2 flask_login.py
@@ -388,7 +388,7 @@ def _set_cookie(self, response):
data = current_user.get_auth_token()
else:
data = encode_cookie(str(session["user_id"]))
- expires = datetime.now() + duration
+ expires = datetime.utcnow() + duration
# actually set it
response.set_cookie(cookie_name, data, expires=expires, domain=domain)

0 comments on commit 1aef46b

Please sign in to comment.