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/ChangeLog | 7 +++++++ calendar/pcs/cal-backend-file.c | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 87ac607143..a29e83d707 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +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. + 2002-09-24 Rodrigo Moya * pcs/cal-backend-file.c (cal_backend_file_get_timezone_object, 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