From e242dc53bf4641c7e1277a2b8827600e53ffb95d Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 5 Jan 2022 13:39:13 +0100 Subject: [PATCH] FIX: All timestamps should be isoformat strings, otherwise come comparisons may break --- platypush/plugins/calendar/ical/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/calendar/ical/__init__.py b/platypush/plugins/calendar/ical/__init__.py index 20e415cff..fdebdf705 100644 --- a/platypush/plugins/calendar/ical/__init__.py +++ b/platypush/plugins/calendar/ical/__init__.py @@ -95,7 +95,7 @@ class CalendarIcalPlugin(Plugin, CalendarInterface): if ( event['status'] != 'cancelled' 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 ( (only_participating and event.get('responseStatus') in [None, 'accepted', 'tentative'])