Taragolis commented on code in PR #34492:
URL: https://github.com/apache/airflow/pull/34492#discussion_r1331512340
##########
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:
And just for a record, I don't think that we should use local imports for
`datetime` and `pendulum` in this module because we import
`airflow.utils.timezone` which import entire `datetime` and some modules from
`pendulum` (at least Timezone/Datetime)
--
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]