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 16:36:35 UTC

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

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



##########
File path: docs/apache-airflow/timezone.rst
##########
@@ -120,11 +121,18 @@ it is therefore important to make sure this setting is equal on all Airflow node
 .. note::
     For more information on setting the configuration, see :doc:`howto/set-config`
 
+.. _timezone_aware_dags:
+
 Time zone aware DAGs
 --------------------
 
 Creating a time zone aware DAG is quite simple. Just make sure to supply a time zone aware ``start_date``
-using ``pendulum``.
+using ``pendulum``. Don't try to use standard library
+`timezone <https://docs.python.org/3/library/datetime.html#timezone-objects>`_ as they are known to
+have limitations and we deliberately disallow using them in DAGs.
+
+, as this will throw serialization
+errors.

Review comment:
       ```suggestion
   ```
   
   Leftovers?




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