rikirolly commented on issue #28329:
URL: https://github.com/apache/airflow/issues/28329#issuecomment-1354710193

   > Could you provide an example DAG and check what timezone Airflow is using? 
(`[core] default_timezone` in `airflow.cfg`)
   ```
   @dag(
       schedule='0 */2 * * *',
       start_date=pendulum.datetime(2022, 12, 7, 10, 00, tz="Europe/Rome"),
       catchup=True,
       max_active_runs=1,
       tags=['riki'],
   )
   
   def neorouter_v08():
   
       @task()
       def load_neorouter_log():
           context = get_current_context()
           ti = context["ti"]
           print(f"data_interval_start: {ti.get_dagrun().data_interval_start}")
           print(f"data_interval_end: {ti.get_dagrun().data_interval_end}")
   
   
       load_neorouter_log()
   
   dag_neorouter_v07 = neorouter_v08()
   ```
   
![configuration](https://user-images.githubusercontent.com/1200467/208100798-2d1192ed-12d6-4265-a0c6-a502f97e6ad5.png)
   


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