FIX: All timestamps should be isoformat strings, otherwise come comparisons may break

This commit is contained in:
Fabio Manganiello 2022-01-05 13:39:13 +01:00
parent ee0b6d237a
commit e242dc53bf
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class CalendarIcalPlugin(Plugin, CalendarInterface):
if ( if (
event['status'] != 'cancelled' event['status'] != 'cancelled'
and event['end'].get('dateTime') and event['end'].get('dateTime')
and event['end']['dateTime'] >= datetime.datetime.now(pytz.timezone('UTC')) and event['end']['dateTime'] >= datetime.datetime.now(pytz.timezone('UTC')).isoformat()
and ( and (
(only_participating (only_participating
and event.get('responseStatus') in [None, 'accepted', 'tentative']) and event.get('responseStatus') in [None, 'accepted', 'tentative'])