FIX: Timestamps on calendar parsed objects should be of type string, not datetime

This commit is contained in:
Fabio Manganiello 2022-01-05 13:35:10 +01:00
parent 9ba2c18595
commit ee0b6d237a

View file

@ -39,7 +39,7 @@ class CalendarIcalPlugin(Plugin, CalendarInterface):
return (
dateutil.parser.isoparse(t.dt.isoformat())
.replace(tzinfo=pytz.timezone('UTC'))
)
).isoformat()
@classmethod
def _translate_event(cls, event):