Skip to content

Commit f7276c4

Browse files
committed
fix: Django cookie expiry time format
1 parent bff80c0 commit f7276c4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## unreleased
99

10+
- Fix django cookie expiry time format to make it consistent with other frameworks
11+
1012
## [0.11.11] - 2022-12-26
1113

1214
- Updates dashboard version

supertokens_python/framework/django/django_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def set_cookie(
5151
key=key,
5252
value=value,
5353
expires=datetime.fromtimestamp(ceil(expires / 1000)).strftime(
54-
"%A, %B %d, %Y %H:%M:%S"
54+
"%a, %d %b %Y %H:%M:%S GMT"
5555
),
5656
path=path,
5757
domain=domain,

0 commit comments

Comments
 (0)