* add dtstamp to our calendar events
authorWilfried Göesgens <willi@citadel.org>
Tue, 23 Jun 2009 18:48:42 +0000 (18:48 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 23 Jun 2009 18:48:42 +0000 (18:48 +0000)
webcit/event.c

index 26dd217bd100725d506de64b3ff980463f25414f..1200917651a162cba4c4ad9b2c93e2d827c739b9 100644 (file)
@@ -820,6 +820,11 @@ void save_individual_event(icalcomponent *supplied_vevent, long msgnum, char *fr
                        icalproperty_free(prop);
                }
 
+               /* Add NOW() to the calendar object... */
+               icalcomponent_set_dtstamp(vevent, 
+                                         icaltime_from_timet(
+                                                 time(NULL), 0));
+
                if (havebstr("summary")) {
                        icalcomponent_add_property(vevent,
                                        icalproperty_new_summary(bstr("summary")));