projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
09b9ace
)
* Minor formatting change
author
Art Cancro
<ajc@citadel.org>
Tue, 2 Dec 2008 20:17:09 +0000
(20:17 +0000)
committer
Art Cancro
<ajc@citadel.org>
Tue, 2 Dec 2008 20:17:09 +0000
(20:17 +0000)
webcit/event.c
patch
|
blob
|
history
diff --git
a/webcit/event.c
b/webcit/event.c
index be2170b3f059b50dbbeac57c980d0dbaae70fde7..9240884b9ca90b3b481e1cbb2d98bc0bce50b13d 100644
(file)
--- a/
webcit/event.c
+++ b/
webcit/event.c
@@
-845,16
+845,10
@@
void save_individual_event(icalcomponent *supplied_vevent, long msgnum, char *fr
icaltime_from_webform(&event_start, "dtstart");
}
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);
prop = icalproperty_new_dtstart(event_start);
+
if (all_day_event) {
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));
}
icalproperty_set_value(prop, icalvalue_new_date(event_start));
}