ashb commented on a change in pull request #16631:
URL: https://github.com/apache/airflow/pull/16631#discussion_r657886916



##########
File path: airflow/serialization/serialized_objects.py
##########
@@ -229,7 +248,7 @@ def _serialize(cls, var: Any) -> Any:  # Unfortunately 
there is no support for r
         elif isinstance(var, datetime.timedelta):
             return cls._encode(var.total_seconds(), type_=DAT.TIMEDELTA)
         elif isinstance(var, Timezone):
-            return cls._encode(str(var.name), type_=DAT.TIMEZONE)
+            return SerializedDAG.serialize_timezone(var)

Review comment:
       ```suggestion
               return cls.serialize_timezone(var)
   ```




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

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


Reply via email to