X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcalendar_view.c;h=a015a869c39720479f8567f1b6cba5755129058e;hb=c6f1a8ea5b3950cc06c4e649ebd7d0bc59cb948f;hp=28550be8e48cc5ff91c37aa94cc7b9d503fd2ed9;hpb=2b019b66a9fab04be523ad0dd84a533ae3452ec5;p=citadel.git diff --git a/webcit/calendar_view.c b/webcit/calendar_view.c index 28550be8e..a015a869c 100644 --- a/webcit/calendar_view.c +++ b/webcit/calendar_view.c @@ -299,7 +299,10 @@ void calendar_day_view(int year, int month, int day) { /* Now the middle of the day... */ for (hour = 8; hour <= 17; ++hour) { /* could do HEIGHT=xx */ wprintf(""); - wprintf("%d:00 ", hour); + wprintf("%d:00%s ", + (hour <= 12 ? hour : hour-12), + (hour < 12 ? "am" : "pm") + ); /* put the data here, stupid */ calendar_day_view_display_events(year, month, day, hour);