From e58959d851e2fa1f0c5bcf49ce66631c203e15c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erick=20P=C3=A9rez=20Castellanos?= Date: Mon, 8 Dec 2014 11:33:44 -0500 Subject: [PATCH] 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. --- src/e-cal-data-model.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/e-cal-data-model.c b/src/e-cal-data-model.c index 43da454e..2fb09f7a 100644 --- a/src/e-cal-data-model.c +++ b/src/e-cal-data-model.c @@ -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;