Sonins opened a new pull request #20508: URL: https://github.com/apache/airflow/pull/20508
<!-- Thank you for contributing! Please make sure that your code changes are covered with tests. And in case of new features or big changes remember to adjust the documentation. Feel free to ping committers for the review! In case of existing issue, reference it using one of the following: closes: #ISSUE related: #ISSUE How to write a good git commit message: http://chris.beams.io/posts/git-commit/ --> --- related: #17720 closes: #17720 There was problem that days_ago only uses utc time. If dag is set start_date with days_ago, then dag is scheduled in utc time. After fixing this, the dags using days_ago are scheduled in local time. For example, the dag below in timezone `Asia/Seoul` ```python from airflow import DAG from airflow.operators.dummy import DummyOperator from airflow.utils.dates import days_ago with DAG( dag_id = "test_days_ago_dag", start_date=days_ago(7), schedule_interval="0 2 * * *" ) as dag: dumb = DummyOperator(task_id="test_dummy", dag=dag) ``` is scheduled like below.  -- 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]
