summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-08-23 11:29:59 +0000
committerMilan Crha <mcrha@src.gnome.org>2007-08-23 11:29:59 +0000
commitd42149dc5a8c4c7800847ffad3dbf5f6ae875760 (patch)
treea994f0a8260c6265988a3eb3fee88d69fbe368c9
parent809159686739d05a008127f053478f0306624061 (diff)
downloadevolution-data-server-d42149dc5a8c4c7800847ffad3dbf5f6ae875760.tar.gz
2007-08-23 mcrha Fix for bug #337454
svn path=/trunk/; revision=7980
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/libecal/e-cal.c12
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 <mcrha@redhat.com>
+
+ ** 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 <ross@openedhand.com>
* 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);