raphaelauv commented on issue #40292: URL: https://github.com/apache/airflow/issues/40292#issuecomment-2176325754
yes , you can convert it by ```python from pendulum import DateTime def cast_pendulum_date(date: DateTime) -> str: return date.format("YYYY-MM-DD HH:mm:ss+00:00") ``` ```python DAG( ... user_defined_macros={ "cast_pendulum_date": cast_pendulum_date } ) ... PythonOperator( task_id="XXXX", python_callable=XXXX, do_xcom_push=True, op_kwargs={ "date": "{{ cast_pendulum_date(logical_date) }}", }, ) ``` -- 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