We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fd4428 commit dede7b6Copy full SHA for dede7b6
1 file changed
src/apify_client/_http_client.py
@@ -78,7 +78,7 @@ def _parse_params(params: dict | None) -> dict | None:
78
elif isinstance(value, list):
79
parsed_params[key] = ','.join(value)
80
elif isinstance(value, datetime):
81
- utc_aware_dt = value.replace(tzinfo=timezone.utc)
+ utc_aware_dt = value.astimezone(timezone.utc)
82
83
# Convert to ISO 8601 string in Zulu format
84
zulu_date_str = utc_aware_dt.strftime('%Y-%m-%dT%H:%M:%SZ')
0 commit comments