summaryrefslogtreecommitdiff
path: root/src/vobject/icalendar.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/vobject/icalendar.py')
-rw-r--r--src/vobject/icalendar.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vobject/icalendar.py b/src/vobject/icalendar.py
index 728afb0..a51ff14 100644
--- a/src/vobject/icalendar.py
+++ b/src/vobject/icalendar.py
@@ -270,6 +270,10 @@ class TimezoneComponent(Component):
# try PyICU's tzid key
if hasattr(tzinfo, 'tzid'):
return tzinfo.tzid
+
+ # try pytz zone key
+ if hasattr(tzinfo, 'zone'):
+ return tzinfo.zone
# try tzical's tzid key
elif hasattr(tzinfo, '_tzid'):