Skip to content

Commit 21bb2e9

Browse files
committed
fixed deprecation warning
1 parent 08570ee commit 21bb2e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

amazon_paapi/sdk/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ def update_params_for_auth(self, headers, querys, auth_settings, api_name, metho
524524
"""
525525
if not auth_settings:
526526
service = 'ProductAdvertisingAPI'
527-
utc_timestamp = datetime.datetime.utcnow()
527+
utc_timestamp = datetime.datetime.now(datetime.timezone.utc)
528528
headers['x-amz-target'] = 'com.amazon.paapi5.v1.ProductAdvertisingAPIv1.' + api_name
529529
headers['content-encoding'] = 'amz-1.0'
530530
headers['Content-Type'] = 'application/json; charset=utf-8'

0 commit comments

Comments
 (0)