uranusjr commented on issue #22242:
URL: https://github.com/apache/airflow/issues/22242#issuecomment-1084689345


   This is likely not an issue with timetable logic in Airflow but logic error 
in user code, so I’m converting this to a discussion. The timezone change is 
entirely in the wrong place; all Airflow datetimes are UTC internally, so doing 
`replace(tzinfo=CST)` is totally not the right thing to do and will give you 
nonsensical results. Instead, you should convert the datetimes _passed into 
timetable functions_ to your target timezone instead, before you perform any 
logic.


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