* Worked on meeting accept/decline a little bit
[citadel.git] / webcit / calendar_view.c
index 28550be8e48cc5ff91c37aa94cc7b9d503fd2ed9..a015a869c39720479f8567f1b6cba5755129058e 100644 (file)
@@ -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("<TR><TD BGCOLOR=FFFFFF VALIGN=TOP>");
-               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);