From 461aee22c3c0979efe5b7ca0cfdb0d451928f050 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Fri, 12 Oct 2007 13:15:39 +0000 Subject: [PATCH] * DST-Hack for all day events too. --- webcit/calendar_view.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index 8060c06aa..0532081fa 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -52,7 +52,6 @@ void calendar_month_view_display_events(time_t thetime) { Cal = &WCC->disp_cal[i]; all_day_event = Cal->start_hour == -1; - show_event = thetime == Cal->start_day; // lprintf(1,"Date: %d %d %d %d\n", thetime, Cal->start_day, day, thetime - Cal->start_day); if (!all_day_event) { @@ -68,7 +67,10 @@ void calendar_month_view_display_events(time_t thetime) { fill_day_event = (Cal->start_day < thetime) && (Cal->end_day > thetime); } - + else + { + show_event = (thetime == Cal->start_day) || (dst_day == Cal->start_day); + } if (show_event) { p = icalcomponent_get_first_property( Cal->cal, -- 2.39.2