- icalcomponent_set_dtstamp(vevent, icaltime_from_timet_with_zone(time(NULL), 0, icaltimezone_get_utc_timezone()));
-
- if (havebstr("summary")) {
- icalcomponent_add_property(vevent, icalproperty_new_summary(bstr("summary")));
- }
- else {
- icalcomponent_add_property(vevent, icalproperty_new_summary(_("Untitled Event")));
- }
-
- while (prop = icalcomponent_get_first_property(vevent, ICAL_LOCATION_PROPERTY), prop != NULL) {
- icalcomponent_remove_property(vevent, prop);
- icalproperty_free(prop);
- }
- if (havebstr("location")) {
- icalcomponent_add_property(vevent, icalproperty_new_location(bstr("location")));
- }
- while (prop = icalcomponent_get_first_property(vevent, ICAL_DESCRIPTION_PROPERTY), prop != NULL) {
- icalcomponent_remove_property(vevent, prop);
- icalproperty_free(prop);
- }
- if (havebstr("description")) {
- icalcomponent_add_property(vevent, icalproperty_new_description(bstr("description")));
- }
-
- while (prop = icalcomponent_get_first_property(vevent, ICAL_DTSTART_PROPERTY), prop != NULL) {
+ icalcomponent_set_dtstamp(vevent,
+ icaltime_from_timet_with_zone(
+ time(NULL), 0, icaltimezone_get_utc_timezone()));
+
+ if (havebstr("summary")) {
+ icalcomponent_add_property(vevent,
+ icalproperty_new_summary(bstr("summary")));
+ } else {
+ icalcomponent_add_property(vevent,
+ icalproperty_new_summary(_("Untitled Event")));
+ }
+
+ while (prop = icalcomponent_get_first_property(vevent,
+ ICAL_LOCATION_PROPERTY), prop != NULL) {
+ icalcomponent_remove_property(vevent, prop);
+ icalproperty_free(prop);
+ }
+ if (havebstr("location")) {
+ icalcomponent_add_property(vevent,
+ icalproperty_new_location(bstr("location")));
+ }
+ while (prop = icalcomponent_get_first_property(vevent,
+ ICAL_DESCRIPTION_PROPERTY), prop != NULL) {
+ icalcomponent_remove_property(vevent, prop);
+ icalproperty_free(prop);
+ }
+ if (havebstr("description")) {
+ icalcomponent_add_property(vevent,
+ icalproperty_new_description(bstr("description")));
+ }
+
+ while (prop = icalcomponent_get_first_property(vevent,
+ ICAL_DTSTART_PROPERTY), prop != NULL) {