blob: bae1ad7a78f2e792443fd485f13420fe5168f665 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- contrib/python/botocore/py3/botocore/auth.py (index)
+++ contrib/python/botocore/py3/botocore/auth.py (working tree)
@@ -416,7 +416,7 @@ class SigV4Auth(BaseSigner):
def add_auth(self, request):
if self.credentials is None:
raise NoCredentialsError()
- datetime_now = datetime.datetime.utcnow()
+ datetime_now = datetime.datetime.now(datetime.UTC)
request.context['timestamp'] = datetime_now.strftime(SIGV4_TIMESTAMP)
# This could be a retry. Make sure the previous
# authorization header is removed first.
|