e-cal-data-model: fix event with no end-date

Google Calendar set no end-date on events with 0 sec duration time. We
need to make the corner case work.
This commit is contained in:
Erick Pérez Castellanos
2014-12-08 11:33:44 -05:00
parent 98e4b44a7d
commit e58959d851
+2
View File
@@ -48,6 +48,8 @@ cal_comp_get_instance_times (ECalClient *client,
start_time = icalcomponent_get_dtstart (icalcomp);
end_time = icalcomponent_get_dtend (icalcomp);
if (icaltime_is_null_time (end_time))
end_time = start_time;
if (start_time.zone) {
zone = start_time.zone;