bolkedebruin commented on PR #34492: URL: https://github.com/apache/airflow/pull/34492#issuecomment-1727782642
My suggestion: 1. Use `serialize` from `timezone.py` to serialize the timezone information 2. Increment the version 3. If the _older_ version use the old_style deserialization AND - to be nice on people experiencing issues provide a mapping that does if needed (i.e. having a tz name is in these) ``` Eastern = USTimeZone(-5, "Eastern", "EST", "EDT") Central = USTimeZone(-6, "Central", "CST", "CDT") Mountain = USTimeZone(-7, "Mountain", "MST", "MDT") Pacific = USTimeZone(-8, "Pacific", "PST", "PDT") ``` (source: https://github.com/stub42/pytz/blob/1acdc7f5ab3f4af063ddcd435f79a48a4a8ce079/src/pytz/reference.py#L137) -- 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]
