convert to datetime object before passing to icalendar