Skip to content

Commit

Permalink
Fix windows_to_olson inclusion
Browse files Browse the repository at this point in the history
In icalendar-6.0.0 windows_to_olson is part of icalendar.timezone.
  • Loading branch information
iamleot committed Oct 31, 2024
1 parent 31884be commit ce339cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions khal/icalendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ def split_ics(ics: str, random_uid: bool=False, default_timezone=None) -> List:
# Standard Time' for 'Pacific/Auckland' in Olson format), we convert any
# Windows format timezones to Olson.
if item.name == 'VTIMEZONE':
if item['TZID'] in icalendar.windows_to_olson.WINDOWS_TO_OLSON:
key = icalendar.windows_to_olson.WINDOWS_TO_OLSON[item['TZID']]
if item['TZID'] in icalendar.timezone.windows_to_olson.WINDOWS_TO_OLSON:
key = icalendar.timezone.windows_to_olson.WINDOWS_TO_OLSON[item['TZID']]
else:
key = item['TZID']
tzs[key] = item
Expand Down

0 comments on commit ce339cd

Please sign in to comment.