X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcalendar_view.c;h=3151695775168466e262eddb947dec567006f81f;hb=4b41d944cd644a326f347e8c7015182088d6d58a;hp=52632d3ad9a814cb9595d1e13427990cd2449f9c;hpb=6a828fe0a0e5c73e66cee93238f94dc3c2191a40;p=citadel.git diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index 52632d3ad..315169577 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -813,6 +813,7 @@ void calendar_day_view_display_events(time_t thetime, int year, int month, return; } + lprintf (2, "printing %d\n", hour); /// TODO: remove me. event_start = thetime + 60 * 60 * hour; event_end = thetime + 60 * 60 * (hour + 1); @@ -998,6 +999,7 @@ void calendar_day_view_display_events(time_t thetime, int year, int month, top = (dstart * 10) + ((dend - dstart) * 30) + ((event_tm.tm_hour - event_te.tm_hour) * 10) + startmin - 1; height = ((event_tm.tm_hour - event_te.tm_hour) * 10) + endmin - diffmin; } + } // TODO: we seem to end up here for some reason if we're just a one hour event. Thierry, please decide what to do then... wprintf("
\n"); - } + } }