Skip to content

Commit a264470

Browse files
committed
oxcical: drop "one day" condition for allday imports
When an iCalendar file has no X-MICROSOFT-CDO-ALLDAYEVENT line, the determination whether the event is all-day depends on the format of DTSTART and DTEND. There is also an 1-day length check in oxcical.cpp that also influences this, but there is no explanation given for why it is there. References: GXL-617, DESK-3728
1 parent 7a82552 commit a264470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mapi/oxcical.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2176,7 +2176,7 @@ static const char *oxcical_import_internal(const char *str_zone, const char *met
21762176
start_itime.type != itime_type::utc && start_itime.hour == 0 &&
21772177
start_itime.minute == 0 && start_itime.second == 0 &&
21782178
end_itime.hour == 0 && end_itime.minute == 0 &&
2179-
end_itime.second == 0 && end_itime.delta_day(start_itime) == 1)
2179+
end_itime.second == 0)
21802180
b_allday = true;
21812181
if (b_allday && !oxcical_parse_subtype(phash, &last_propid, pmsg, pexception))
21822182
return "E-2704: oxcical_parse_subtype returned an unspecified error";

0 commit comments

Comments
 (0)