Taragolis commented on code in PR #34492:
URL: https://github.com/apache/airflow/pull/34492#discussion_r1330748633
##########
airflow/serialization/serializers/datetime.py:
##########
@@ -44,7 +44,7 @@ def serialize(o: object) -> tuple[U, str, int, bool]:
if is_naive(o):
o = convert_to_utc(o)
- tz = o.tzname()
+ tz = o.tzinfo.name # type: ignore
Review Comment:
I just remembered that we have serde for
[timezone](https://github.com/apache/airflow/blob/b749f7fd217bf521179b31282c55ce070c442cf3/airflow/serialization/serializers/timezone.py)
maybe it is already cover this case?
--
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]