From 6bbdb8fcede351a423bbb6209351d6212d21c1d8 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Wed, 22 Jun 2022 01:54:53 +0100 Subject: [PATCH] Corrected timestamping --- ref-test/app/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )