* Minor formatting change
authorArt Cancro <ajc@citadel.org>
Tue, 2 Dec 2008 20:17:09 +0000 (20:17 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 2 Dec 2008 20:17:09 +0000 (20:17 +0000)
webcit/event.c

index be2170b3f059b50dbbeac57c980d0dbaae70fde7..9240884b9ca90b3b481e1cbb2d98bc0bce50b13d 100644 (file)
@@ -845,16 +845,10 @@ void save_individual_event(icalcomponent *supplied_vevent, long msgnum, char *fr
                        icaltime_from_webform(&event_start, "dtstart");
                }
 
-               /*
-                * The following odd-looking snippet of code looks like it
-                * takes some unnecessary steps.  It is done this way because
-                * libical incorrectly turns an "all day event" into a normal
-                * event starting at midnight (i.e. it serializes as date/time
-                * instead of just date) unless icalvalue_new_date() is used.
-                * So we force it, if this is an all day event.
-                */
                prop = icalproperty_new_dtstart(event_start);
+
                if (all_day_event) {
+                       /* Force it to serialize as a date-only rather than date/time */
                        icalproperty_set_value(prop, icalvalue_new_date(event_start));
                }