X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcalendar_view.c;h=5960ff5328ecd2f69f40cf796596cd43af5b5dfb;hb=46b0e48e8a165b23c4477c66f06db474c55fa515;hp=bee159b82f24cb79fb67d7246e21aec32c86dfc3;hpb=3ca5e24a35f57990df888c4b0f8353df68efd333;p=citadel.git diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index bee159b82..5960ff532 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -573,6 +573,7 @@ void calendar_month_view(int year, int month, int day) { /* Inner table (the real one) */ wprintf(""); + wprintf(""); colheader_time = thetime; for (i=0; i<7; ++i) { colheader_time = thetime + (i * 86400) ; @@ -591,7 +592,9 @@ void calendar_month_view(int year, int month, int day) { /* Before displaying the first day of the week, start a new row */ if ((i % 7) == 0) { - wprintf(""); + wprintf("
"); + wc_strftime(colheader_label, sizeof colheader_label, "%V", &tm); + wprintf("%s ", colheader_label); } wprintf("
",