Skip to content

Commit

Permalink
Fix calendar timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Jan 27, 2024
1 parent 005ad8d commit 1503354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terrariumCalendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self):
self.__ical = Calendar.from_ical(self.__ICS_FILE.read_bytes())

# Clear old wrong events
for event in self.get_events(datetime(2020,1,1,0,0,0),datetime(2030,1,1,0,0,0)):
for event in self.get_events(datetime(2020,1,1,0,0,0,0, timezone.utc),datetime(2030,1,1,0,0,0,0, timezone.utc)):
if event['summary'] == 'TerrariumPI 10 year celebration':
self.delete_event(event['uid'])

Expand Down

0 comments on commit 1503354

Please sign in to comment.