jedcunningham commented on a change in pull request #21646:
URL: https://github.com/apache/airflow/pull/21646#discussion_r809547651



##########
File path: airflow/example_dags/example_branch_datetime_operator.py
##########
@@ -20,15 +20,15 @@
 Example DAG demonstrating the usage of DateTimeBranchOperator with datetime as 
well as time objects as
 targets.
 """
-import datetime
+import pendulum
 
 from airflow import DAG
 from airflow.operators.datetime import BranchDateTimeOperator
 from airflow.operators.dummy import DummyOperator
 
 dag = DAG(
     dag_id="example_branch_datetime_operator",
-    start_date=datetime.datetime(2021, 1, 1),
+    start_date=pendulum.datetime(2021, 1, 1),

Review comment:
       ```suggestion
       start_date=pendulum.datetime(2021, 1, 1, tz="UTC"),
   ```
   
   and here?

##########
File path: airflow/example_dags/example_bash_operator.py
##########
@@ -27,9 +29,9 @@
 with DAG(
     dag_id='example_bash_operator',
     schedule_interval='0 0 * * *',
-    start_date=datetime(2021, 1, 1),
+    start_date=pendulum.datetime(2021, 1, 1),

Review comment:
       ```suggestion
       start_date=pendulum.datetime(2021, 1, 1, tz="UTC"),
   ```
   
   Was this just missed?




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