You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "pierrejeambrun (via GitHub)" <gi...@apache.org> on 2023/11/04 18:49:07 UTC

Re: [I] The logical date parameter for DAGRun is incorrect [airflow-client-python]

pierrejeambrun commented on issue #98:
URL: https://github.com/apache/airflow-client-python/issues/98#issuecomment-1793521855

   `datetime.utcnow()` gives the current time in UTC but is still TZ naive.
   
   You need to provide a timezone aware datetime, for instance `datetime.now(pytz.utc)`.
   
   Example:
   ![image](https://github.com/apache/airflow-client-python/assets/14861206/dc64672c-e9cf-44e0-9ef4-cbc990901a28)
   
   Response:
   ![image](https://github.com/apache/airflow-client-python/assets/14861206/248cf8a8-2ed4-4e87-8d1f-38887157d671)
   
   Closing as resolved, feel free to re-open if needed
   


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