Fix expiry date in theme set-cookie (#141)

This commit is contained in:
Tim Hawes 2023-10-20 10:43:15 +01:00 committed by GitHub
parent 6a8099d79e
commit 36e5d75a84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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