AhmedAli58 opened a new pull request, #62122: URL: https://github.com/apache/airflow/pull/62122
## What Fix `from_timestamp()` UTC guard condition so UTC inputs do not perform an unnecessary `in_timezone()` call.\n\n## Why\nThe previous condition used `or`, which is always true for this check and forced conversion even when `tz` was already UTC.\n\n## How\n- Change `if tz != utc or tz != "UTC"` to `if tz != utc and tz != "UTC"`\n- Add regression tests to ensure UTC object and `"UTC"` string skip timezone conversion\n\n## Verification\n`PYTHONPATH=shared/timezones/src python3 -m pytest -q shared/timezones/tests`\n- 32 passed -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
