SapphicCode opened a new issue, #33256: URL: https://github.com/apache/airflow/issues/33256
### Apache Airflow version 2.6.3 ### What happened TimeSensor and TimeSensorAsync convert timezones differently. TimeSensor converts a naive time into an tz-aware time with `self.dag.timezone`. TimeSensorAsync does not, and erronously converts it to UTC instead. ### What you think should happen instead TimeSensor and TimeSensorAsync should behave the same. ### How to reproduce Compare the logic of TimeSensor versus TimeSensorAsync, given a DAG with a UTC+2 (for example `Europe/Berlin`) timezone and the target_time input of `datetime.time(9, 0)`. ### Operating System Official container image, Debian GNU/Linux 11 (bullseye), Python 3.10.12 ### Versions of Apache Airflow Providers _No response_ ### Deployment Other ### Deployment details EKS + Kustomize stack with airflow-ui, airflow-scheduler, and airflow-triggerer. ### Anything else _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
