Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #28 from simonz05/patch-1

use UTC for cookie expire instead of local time
  • Loading branch information...
commit 1aef46bcd45a69dc62cf496bebca7e97ceb30aea 2 parents 84a1ce4 + 5c02e6d
@leafstorm leafstorm authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.