You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/31 14:49:21 UTC

[GitHub] [airflow] uranusjr commented on issue #22242: When try to change the tzinfo of Timetable example,Dag's catchup is True but no backfill

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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org