From d42149dc5a8c4c7800847ffad3dbf5f6ae875760 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 23 Aug 2007 11:29:59 +0000 Subject: 2007-08-23 mcrha Fix for bug #337454 svn path=/trunk/; revision=7980 --- calendar/ChangeLog | 7 +++++++ calendar/libecal/e-cal.c | 12 ++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 2d2a00abf..fb078dd4d 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2007-08-23 Milan Crha + + ** Fix for bug #337454 + + * libecal/e-cal.c: (generate_instances): Based on RFC 2445, + DTEND property is not required for reccuring VEVENT. + 2007-08-13 Ross Burton * libedata-cal/e-cal-backend-cache.c: diff --git a/calendar/libecal/e-cal.c b/calendar/libecal/e-cal.c index 7ee985820..d2604a41c 100644 --- a/calendar/libecal/e-cal.c +++ b/calendar/libecal/e-cal.c @@ -3571,10 +3571,14 @@ generate_instances (ECal *ecal, time_t start, time_t end, const char *uid, end_zone = default_zone; } - ci->start = icaltime_as_timet_with_zone (*dtstart.value, - start_zone); - ci->end = icaltime_as_timet_with_zone (*dtend.value, - end_zone); + ci->start = icaltime_as_timet_with_zone (*dtstart.value, start_zone); + + if (dtend.value) + ci->end = icaltime_as_timet_with_zone (*dtend.value, end_zone); + else if (icaltime_is_date (*dtstart.value)) + ci->end = time_day_end (ci->start); + else + ci->end = ci->start; e_cal_component_free_datetime (&dtstart); e_cal_component_free_datetime (&dtend); -- cgit v1.2.1