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