[evolution-data-server] BUG 579965 - calendar file backend, update 'LAST-MODIFIED' when removing a recurring event instance



commit 7c613add2afd1d77f7e030812a26d62508fa3c84
Author: Chen Congwu <congwu chen intel com>
Date:   Fri Jul 31 11:05:19 2009 +0800

    BUG 579965 - calendar file backend, update 'LAST-MODIFIED' when removing a recurring event instance

 calendar/backends/file/e-cal-backend-file.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/calendar/backends/file/e-cal-backend-file.c b/calendar/backends/file/e-cal-backend-file.c
index d315977..fddfa6d 100644
--- a/calendar/backends/file/e-cal-backend-file.c
+++ b/calendar/backends/file/e-cal-backend-file.c
@@ -2507,6 +2507,11 @@ remove_instance (ECalBackendFile *cbfile, ECalBackendFileObject *obj_data, const
 	e_cal_util_remove_instances (e_cal_component_get_icalcomponent (obj_data->full_object),
 				     icaltime_from_string (rid), CALOBJ_MOD_THIS);
 
+	/* Since we are only removing one instance of recurrence
+       event, update the last modified time on the component */
+	struct icaltimetype current = icaltime_current_time_with_zone (icaltimezone_get_utc_timezone ());
+	e_cal_component_set_last_modified (obj_data->full_object, &current);
+
 	/* add the modified object to the beginning of the list,
 	   so that it's always before any detached instance we
 	   might have */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]