aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/calendar.c')
-rw-r--r--calendar/calendar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/calendar/calendar.c b/calendar/calendar.c
index dfeb1d6cc8..e6c6dddf59 100644
--- a/calendar/calendar.c
+++ b/calendar/calendar.c
@@ -133,7 +133,7 @@ calendar_add_object (Calendar *cal, iCalObject *obj)
cal->modified = TRUE;
- /* FIXME: do we have to set the last_mod field in the object? */
+ obj->last_mod = time (NULL);
}
void
@@ -504,6 +504,8 @@ calendar_get_events_in_range (Calendar *cal, time_t start, time_t end)
void
calendar_object_changed (Calendar *cal, iCalObject *obj, int flags)
{
+ obj->last_mod = time (NULL);
+
if (!(flags & CHANGE_DATES))
return;