diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2002-09-25 19:19:00 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2002-09-25 19:19:00 +0800 |
commit | 670238866417464888d06b6b75b9c0b5867c275d (patch) | |
tree | a17f8873dd11aab68bb7532d5bfeb3b5bfb032d3 /calendar/pcs | |
parent | e308c256c892d82c41e244fda8e2e616917a7f5a (diff) | |
download | gsoc2013-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
Diffstat (limited to 'calendar/pcs')
-rw-r--r-- | calendar/pcs/cal-backend-file.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) |