* DST-Hack for all day events too.
authorWilfried Göesgens <willi@citadel.org>
Fri, 12 Oct 2007 13:15:39 +0000 (13:15 +0000)
committerWilfried Göesgens <willi@citadel.org>
Fri, 12 Oct 2007 13:15:39 +0000 (13:15 +0000)
webcit/calendar_view.c

index 8060c06aa5a612c77b947e681db012a01dfee8d0..0532081faa4f431551d67230d84d45b82f0bfe8c 100644 (file)
@@ -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,