aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/calendar.c')
-rw-r--r--calendar/gui/calendar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/calendar/gui/calendar.c b/calendar/gui/calendar.c
index 34020adf38..d564c81a9d 100644
--- a/calendar/gui/calendar.c
+++ b/calendar/gui/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? */