Skip to content

Commit ca127ad

Browse files
committed
chore(event_handler): renamed method
1 parent 21af406 commit ca127ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aws_lambda_powertools/shared/cookies.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class SameSite(Enum):
1111
NONE_MODE = "None"
1212

1313

14-
def _getdate(timestamp: datetime) -> str:
14+
def _format_date(timestamp: datetime) -> str:
1515
return timestamp.strftime("%a, %d %b %Y %H:%M:%S GMT")
1616

1717

@@ -51,7 +51,7 @@ def __str__(self) -> str:
5151
payload.write(f"; Domain={self.domain}")
5252

5353
if self.expires:
54-
payload.write(f"; Expires={_getdate(self.expires)}")
54+
payload.write(f"; Expires={_format_date(self.expires)}")
5555

5656
if self.max_age:
5757
if self.max_age > 0:

0 commit comments

Comments
 (0)