Skip to content

Commit 6f9cdb0

Browse files
authored
Fix invalid date header in localized environments
1 parent 128ce69 commit 6f9cdb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lara_sdk/_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _request(self, method: str, path: str, body: Dict = None, files: Dict = None
123123

124124
_headers = {
125125
'X-HTTP-Method-Override': method,
126-
'Date': datetime.datetime.now(datetime.timezone.utc).strftime('%a, %d %b %Y %H:%M:%S +0000'),
126+
'Date': datetime.datetime.now(datetime.timezone.utc).strftime('%d %m %Y %H:%M:%S +0000'),
127127
'X-Lara-SDK-Name': self.sdk_name,
128128
'X-Lara-SDK-Version': self.sdk_version
129129
}

0 commit comments

Comments
 (0)