From ec995f673ed5d00138993824c1aa128c97f32a7d Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 17 Dec 2002 05:01:39 +0000 Subject: [PATCH] * Prettied up the calendar day view layout * Hour/minute editing fields now use am/pm hours and 2-digit minutes --- webcit/ChangeLog | 5 +++ webcit/calendar_tools.c | 13 ++++-- webcit/calendar_view.c | 94 ++++++++++++++++++++++++----------------- webcit/event.c | 10 +---- 4 files changed, 72 insertions(+), 50 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 70f6194d5..f6fcfef25 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,8 @@ $Log$ +Revision 400.65 2002/12/17 05:01:39 ajc +* Prettied up the calendar day view layout +* Hour/minute editing fields now use am/pm hours and 2-digit minutes + Revision 400.64 2002/12/16 04:43:30 ajc * Correctly handle local time zone when figuring out which day and time to display events on calendar month/day views. This also seems to have @@ -1173,3 +1177,4 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix + diff --git a/webcit/calendar_tools.c b/webcit/calendar_tools.c index 7ece52fda..1753a483c 100644 --- a/webcit/calendar_tools.c +++ b/webcit/calendar_tools.c @@ -36,6 +36,13 @@ char *days[] = { "Thursday", "Friday", "Saturday" }; +char *hourname[] = { + "12am", "1am", "2am", "3am", "4am", "5am", "6am", + "7am", "8am", "9am", "10am", "11am", "12pm", + "1pm", "2pm", "3pm", "4pm", "5pm", "6pm", + "7pm", "8pm", "9pm", "10pm", "11pm" +}; + #ifdef HAVE_ICAL_H /* @@ -118,9 +125,9 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix) { wprintf("Hour: "); wprintf("\n"); @@ -128,7 +135,7 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix) { wprintf("Minute: "); wprintf("