diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 47cb66302..ca48b4d55 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -33,6 +33,7 @@ not released yet * NEW support for color theme, command, and formatter plugins * FIX an issue where ikhal would forget changes to time or date fields if you left the field with page up/down or meta+enter +* UPDATED REQUIREMENT icalendar is now required >= 6.0.0 0.11.3 ====== diff --git a/khal/icalendar.py b/khal/icalendar.py index 39e6eda8f..3d1fcd71f 100644 --- a/khal/icalendar.py +++ b/khal/icalendar.py @@ -37,6 +37,10 @@ logger = logging.getLogger('khal') +# Force use of pytz because we rely on functionalities not available in +# zoneinfo. +icalendar.use_pytz() + def split_ics(ics: str, random_uid: bool=False, default_timezone=None) -> List: """split an ics string into several according to VEVENT's UIDs diff --git a/pyproject.toml b/pyproject.toml index 597a6046a..7dc930926 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ requires-python = ">=3.8,<3.13" dependencies = [ "click>=3.2", "click_log>=0.2.0", - "icalendar>=4.0.3", + "icalendar>=6.0.0", "urwid>=2.6.15", "pyxdg", "pytz",