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/02/17 21:05:14 UTC

[GitHub] [airflow] josh-fell commented on a change in pull request #21646: Clarify pendulum use in timezone cases

josh-fell commented on a change in pull request #21646:
URL: https://github.com/apache/airflow/pull/21646#discussion_r809465895



##########
File path: docs/apache-airflow/dag-run.rst
##########
@@ -111,7 +111,9 @@ in the configuration file. When turned off, the scheduler creates a DAG run only
     """
     from airflow.models.dag import DAG
     from airflow.operators.bash import BashOperator
-    from datetime import datetime, timedelta
+
+    # Note that if you plan to use timezones you should use pendulum
+    from pendulum import datetime, timedelta

Review comment:
       Do we want to also push use of `pendulum.duration()` (the `datetime.timedelta()` equivalent) too?




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