Commit e242dc53 authored by Fabio Manganiello's avatar Fabio Manganiello
Browse files

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

parent ee0b6d23
Pipeline #133 passed with stages
in 5 minutes and 47 seconds
......@@ -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'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment