From 57e5bab65495cf8e2b064a2fdee41301d50a128f Mon Sep 17 00:00:00 2001 From: allen-munsch Date: Tue, 18 Oct 2022 08:37:56 -0500 Subject: [PATCH] update for python 3.10 --- vobject/icalendar.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vobject/icalendar.py b/vobject/icalendar.py index a44fffb..b3360d9 100644 --- a/vobject/icalendar.py +++ b/vobject/icalendar.py @@ -330,6 +330,8 @@ def pickTzid(tzinfo, allowUTC=False): """ Given a tzinfo class, use known APIs to determine TZID, or use tzname. """ + if str(tzinfo) == 'UTC': + return None if tzinfo is None or (not allowUTC and tzinfo_eq(tzinfo, utc)): # If tzinfo is UTC, we don't need a TZID return None