kaxil commented on issue #20055:
URL: https://github.com/apache/airflow/issues/20055#issuecomment-986731911


   Airflow has a utility for it that you can use to make sure you don't need to 
use anything else.
   
   ```python
   from airflow.utils import timezone
   
   now = timezone.utcnow()
   a_date = timezone.datetime(2017, 1, 1)
   ```
   
   
https://airflow.apache.org/docs/apache-airflow/2.2.2/timezone.html#naive-and-aware-datetime-objects
   
   Airflow have relied on Pendulum for as long as I can remember and we make it 
clear on https://airflow.apache.org/docs/apache-airflow/2.2.2/timezone.html on 
why we picked pendulum instead of pytz too.
   
   However, if you have any suggestions on how we can make it clearer, we are 
happy to hear your thoughts
   
   


-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to