Skip to content

Commit

Permalink
Replace tz.localize with date.replace
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Oct 12, 2024
1 parent 106e4d0 commit 49e352f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion khal/icalendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 49e352f

Please sign in to comment.