uranusjr commented on issue #19716:
URL: https://github.com/apache/airflow/issues/19716#issuecomment-974465572
This can be worked around by implementing a proxy specific for datetime:
```pycon
>>> from lazy_object_proxy import Proxy
>>> class DTProxy(Proxy):
... def __format__(self, spec):
... return self.__wrapped__.__format__(spec)
...
>>> from airflow.utils.timezone import utcnow
>>> p = DTProxy(utcnow)
>>> f"{p:%Y-%m-%d}"
'2021-11-19'
```
--
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]