X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcalendar_tools.c;h=23dd53524b8f435ce131a47aa96b29202c2f671f;hb=4d8058558a7251e6ac9222ebd1c2d1270cdd9153;hp=45fcef8d2e03b3d387e7fecd40c8ee84b2f828c3;hpb=31b598b10dcc8f63c5cf77cffb6f305f7cff1339;p=citadel.git diff --git a/webcit/calendar_tools.c b/webcit/calendar_tools.c index 45fcef8d2..23dd53524 100644 --- a/webcit/calendar_tools.c +++ b/webcit/calendar_tools.c @@ -8,7 +8,7 @@ #include "webserver.h" #include "time.h" -/** Hour strings */ +/* Hour strings */ char *hourname[] = { "12am", "1am", "2am", "3am", "4am", "5am", "6am", "7am", "8am", "9am", "10am", "11am", "12pm", @@ -16,8 +16,7 @@ char *hourname[] = { "7pm", "8pm", "9pm", "10pm", "11pm" }; -/** - * \brief display and edit date/time +/* * The display_icaltimetype_as_webform() and icaltime_from_webform() functions * handle the display and editing of date/time properties in web pages. The * first one converts an icaltimetype into valid HTML markup -- a series of form @@ -28,15 +27,12 @@ char *hourname[] = { * property (for example, a start and end time) by ensuring the field names are * unique within the form. * - * \todo NOTE: These functions assume that the icaltimetype being edited is in UTC, and + * NOTE: These functions assume that the icaltimetype being edited is in UTC, and * will convert to/from local time for editing. "local" in this case is assumed * to be the time zone in which the WebCit server is running. A future improvement * might be to allow the user to specify his/her timezone. - * \param t the time we want to parse - * \param prefix ???? \todo */ - void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix) { int i; time_t now; @@ -69,7 +65,7 @@ void display_icaltimetype_as_webform(struct icaltimetype *t, char *prefix) { wprintf("\" id=\""); wprintf(prefix); wprintf("\" value=\""); - wc_strftime(timebuf, 32, "%d/%m/%Y", &tm); + wc_strftime(timebuf, 32, "%Y-%m-%d", &tm); wprintf(timebuf); wprintf("\">"); wprintf("