X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcalendar.c;h=c1d0ded593dcdf274d680d31701cf04b38de5a11;hb=6692fc1a98b9e45b0ef43348f396d84758006226;hp=84493f90f8fbfc22189e1b9373e1945e6c0de1ba;hpb=abdc4294f710a237888c8003cf205ed1eb224cee;p=citadel.git diff --git a/webcit/calendar.c b/webcit/calendar.c index 84493f90f..c1d0ded59 100644 --- a/webcit/calendar.c +++ b/webcit/calendar.c @@ -504,6 +504,9 @@ void display_individual_cal(icalcomponent *event, long msgnum, char *from, int u if (!icaltime_is_null_time(dtend)) { /* Need duration for recurrences */ dur = icaltime_subtract(dtend, dtstart); } + else { + dur = icaltime_subtract(dtstart, dtstart); + } /* * Just let libical iterate the recurrence, and keep looping back to the top of this function,