Taragolis commented on issue #27777:
URL: https://github.com/apache/airflow/issues/27777#issuecomment-1320382437

   This is unlikely a bug of Airflow it is how builtin 
[datetime.isoformat()](https://docs.python.org/3/library/datetime.html#datetime.datetime.isoformat)
 works.
   
   I would recommend [format](https://pendulum.eustace.io/docs/#formatter) 
`logical_date` instead of use `macros.ds_format`
   
   ```python
       bash_task = BashOperator(
           task_id="bash_task",
           bash_command="""echo "Here is the message: {{ 
logical_date.format('YYYY/MM/DD/HH') }}" """,
       )
   ``` 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to