From 670238866417464888d06b6b75b9c0b5867c275d Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Wed, 25 Sep 2002 11:19:00 +0000 Subject: Fixes #27961 2002-09-25 Rodrigo Moya Fixes #27961 * pcs/cal-backend-file.c (cal_backend_file_update_object): set the LAST-MODIFIED time of the components when we save them. svn path=/trunk/; revision=18213 --- calendar/pcs/cal-backend-file.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'calendar/pcs/cal-backend-file.c') diff --git a/calendar/pcs/cal-backend-file.c b/calendar/pcs/cal-backend-file.c index c5b6c63df5..0e3c71c548 100644 --- a/calendar/pcs/cal-backend-file.c +++ b/calendar/pcs/cal-backend-file.c @@ -1729,6 +1729,7 @@ cal_backend_file_update_object (CalBackendFile *cbfile, CalComponent *old_comp; CalComponent *comp; const char *comp_uid; + struct icaltimetype last_modified; /* Create a CalComponent wrapper for the icalcomponent. */ comp = cal_component_new (); @@ -1744,6 +1745,10 @@ cal_backend_file_update_object (CalBackendFile *cbfile, return NULL; } + /* Set the LAST-MODIFIED time on the component */ + last_modified = icaltime_from_timet (time (NULL), 0); + cal_component_set_last_modified (comp, &last_modified); + /* Remove any old version of the component. */ old_comp = lookup_component (cbfile, comp_uid); if (old_comp) -- cgit v1.2.3