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

   `o.tzname` it is refers to `datatime.datetime.tzname` ([Latest native Python 
implementation](https://github.com/python/cpython/blob/17a335dd0291d09e1510157a4ebe02932ec632dd/Lib/datetime.py#L1579-L1590)),
 I think @rishi-kulkarni suggestion to use `pendulum.datetime.Datetime.tz.name` 
most applicable for pendulum
   
   If I change current implementation in `serialize` then DAG work fine as well 
as your example
   
   ```diff
   -        tz = o.tzname()
   +        tz = o.tz.name if isinstance(o, DateTime) else o.tzname()
   ```
   
   
![image](https://github.com/apache/airflow/assets/3998685/e93e2ee2-143c-42cd-a967-883b932f10cb)
   


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