Corrected timestamping

This commit is contained in:
Vivek Santayana 2022-06-22 01:54:53 +01:00
parent c633a474b5
commit 6bbdb8fced

View File

@ -22,7 +22,7 @@ def _cookie_consent():
value='true', value='true',
max_age = timedelta(days=14) if request.cookies.get('remember') == 'True' else None, max_age = timedelta(days=14) if request.cookies.get('remember') == 'True' else None,
path = '/', path = '/',
expires = datetime.utcnow() + timedelta(days=14) if request.cookies.get('remember') else None, expires = datetime.now() + timedelta(days=14) if request.cookies.get('remember') else None,
domain = f'{app.config.get("SERVER_NAME")}', domain = f'{app.config.get("SERVER_NAME")}',
secure = True secure = True
) )