From 49e352f3189296fba848d6e53108cc8bb356381f Mon Sep 17 00:00:00 2001 From: andrew Date: Sat, 12 Oct 2024 10:14:13 -0400 Subject: [PATCH] Replace tz.localize with date.replace --- khal/icalendar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/khal/icalendar.py b/khal/icalendar.py index 39e6eda8f..ba3a554a9 100644 --- a/khal/icalendar.py +++ b/khal/icalendar.py @@ -246,7 +246,7 @@ def sanitize_datetime(date: dt.date) -> dt.date: if allday and isinstance(date, dt.datetime): date = date.date() if events_tz is not None: - date = events_tz.localize(date) + date = date.replace(tzinfo=events_tz) return date rrule_param = vevent.get('RRULE')