Andrushika opened a new pull request, #76901:
URL: https://github.com/apache/airflow/pull/76901

   ## Why
   
   `test_task_is_deferred` in 
`providers/standard/tests/unit/standard/sensors/test_time.py` freezes time with 
`@time_machine.travel("2020-07-07 00:00:00")`. The string has no UTC offset, so 
`time_machine` reads it as the local time of the host. On a UTC+8 host that 
moment is 16:00 on July 6 in UTC. The sensor then computes its target on July 
6, and the test expects July 7. CI runs in UTC, so the test passes there. It 
fails with `TZ=Asia/Taipei`.
   
   ## What
   
   Add `+00:00` to the string, so the frozen moment is the same on every host. 
`test_time.py` passes with `TZ` set to `UTC`, `Asia/Taipei`, `America/New_York` 
and `Pacific/Kiritimati`.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Claude Fable 5.2)
   
   Generated-by: Claude Code (Claude Fable 5.2) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)
   


-- 
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]

Reply via email to