aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2002-09-25 19:19:00 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2002-09-25 19:19:00 +0800
commit670238866417464888d06b6b75b9c0b5867c275d (patch)
treea17f8873dd11aab68bb7532d5bfeb3b5bfb032d3
parente308c256c892d82c41e244fda8e2e616917a7f5a (diff)
downloadgsoc2013-evolution-670238866417464888d06b6b75b9c0b5867c275d.tar
gsoc2013-evolution-670238866417464888d06b6b75b9c0b5867c275d.tar.gz
gsoc2013-evolution-670238866417464888d06b6b75b9c0b5867c275d.tar.bz2
gsoc2013-evolution-670238866417464888d06b6b75b9c0b5867c275d.tar.lz
gsoc2013-evolution-670238866417464888d06b6b75b9c0b5867c275d.tar.xz
gsoc2013-evolution-670238866417464888d06b6b75b9c0b5867c275d.tar.zst
gsoc2013-evolution-670238866417464888d06b6b75b9c0b5867c275d.zip
Fixes #27961
2002-09-25 Rodrigo Moya <rodrigo@ximian.com> 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
-rw-r--r--calendar/ChangeLog7
-rw-r--r--calendar/pcs/cal-backend-file.c5
2 files changed, 12 insertions, 0 deletions
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 <rodrigo@ximian.com>
+
+ 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 <rodrigo@ximian.com>
* 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)