We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2b7f6d7 + 265020d commit d33ef2fCopy full SHA for d33ef2f
1 file changed
vobject/icalendar.py
@@ -335,6 +335,10 @@ def pickTzid(tzinfo, allowUTC=False):
335
if tzinfo is None or (not allowUTC and tzinfo_eq(tzinfo, utc)):
336
return None
337
338
+ # Try a zoneinfo (CPython 3.9+) first.
339
+ if hasattr(tzinfo, 'key'):
340
+ return toUnicode(tzinfo.key)
341
+
342
# Try pytz tzid key
343
if hasattr(tzinfo, 'tzid'):
344
return toUnicode(tzinfo.tzid)
0 commit comments