From 3180c7ad7488ca85873485e42e0b3b77f7746495 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 25 Oct 2005 02:19:18 +0000 Subject: [PATCH] * calendar_view.c: fixed a variable initialization bug that was causing some time-specific events to be displayed as all-day events. --- webcit/ChangeLog | 4 ++++ webcit/calendar_view.c | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index fef11cf4b..a6ec05263 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,3 +1,7 @@ +Mon Oct 24 22:18:25 EDT 2005 ajc +* calendar_view.c: fixed a variable initialization bug that was causing some + time-specific events to be displayed as all-day events. + Mon Oct 24 11:58:53 EDT 2005 ajc * List sub/unsub confirmation -- Citadel now wants http:// or https:// prepended as part of the 'submitted subscribe url' so we are now doing diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index 062df0c4d..cd898dbae 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -247,7 +247,12 @@ void calendar_day_view_display_events(int year, int month, if (p != NULL) { t = icalproperty_get_dtstart(p); event_tt = icaltime_as_timet(t); - if (t.is_date) all_day_event = 1; + if (t.is_date) { + all_day_event = 1; + } + else { + all_day_event = 0; + } if (all_day_event) { event_tm = gmtime(&event_tt); @@ -462,7 +467,12 @@ void calendar_summary_view(void) { if (p != NULL) { t = icalproperty_get_dtstart(p); event_tt = icaltime_as_timet(t); - if (t.is_date) all_day_event = 1; + if (t.is_date) { + all_day_event = 1; + } + else { + all_day_event = 0; + } fmt_time(timestring, event_tt); if (all_day_event) { -- 2.39.2