ical.net icon indicating copy to clipboard operation
ical.net copied to clipboard

CalDateTime sets HasTime property to false if time is 12:00 AM

Open rcheung9 opened this issue 5 years ago • 1 comments

If I create a new CalDateTime new CalDateTime(dtStart) where dtStart is a DateTime object with time set to 12:00 AM, the resulting CalDateTime HasTime property is false.

This changes the Serialization to this.

DTEND:20181107T013000
DTSTAMP:20181107T002112Z
DTSTART;VALUE=DATE:20181107

But Outlook can't parse this file into a calendar invite. It just calls the file not supported calendar message.ics.

I don't know if this is an Outlook thing, but for now I just manually set HasTime to true after creating the CalDateTime object and it serializes into a format recognizable by Outlook.

rcheung9 avatar Nov 21 '18 08:11 rcheung9