From 36e5d75a84595faa487f56997f1ea9360caff0d5 Mon Sep 17 00:00:00 2001 From: Tim Hawes Date: Fri, 20 Oct 2023 10:43:15 +0100 Subject: [PATCH] Fix expiry date in theme set-cookie (#141) --- apprise_api/core/middleware/theme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apprise_api/core/middleware/theme.py b/apprise_api/core/middleware/theme.py index 78057f4..a00f3b9 100644 --- a/apprise_api/core/middleware/theme.py +++ b/apprise_api/core/middleware/theme.py @@ -78,7 +78,7 @@ class AutoThemeMiddleware: datetime.timedelta(seconds=max_age) # Set our cookie - response.set_cookie('theme', theme, expires=expires.utctimetuple()) + response.set_cookie('theme', theme, expires=expires) # return our response return response