diff --git a/ref-test/app/views.py b/ref-test/app/views.py index 4627ebe..49381a0 100644 --- a/ref-test/app/views.py +++ b/ref-test/app/views.py @@ -22,7 +22,7 @@ def _cookie_consent(): value='true', max_age = timedelta(days=14) if request.cookies.get('remember') == 'True' else None, 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")}', secure = True )