aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/calendar.c')
-rw-r--r--calendar/calendar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/calendar/calendar.c b/calendar/calendar.c
index 34020adf38..d564c81a9d 100644
--- a/calendar/calendar.c
+++ b/calendar/calendar.c
@@ -110,6 +110,12 @@ calendar_add_object (Calendar *cal, iCalObject *obj)
g_assert_not_reached ();
}
+ if (!obj->uid){
+ char buffer [80];
+
+ snprintf (buffer, sizeof (buffer), "GnomeCalendar-%ld\n", time (NULL));
+ }
+
cal->modified = TRUE;
/* FIXME: do we have to set the last_mod field in the object? */