From: Art Cancro Date: Mon, 29 Sep 2008 16:23:07 +0000 (+0000) Subject: Calendar date format is now yyyy-mm-dd because that is the X-Git-Tag: v7.86~1899 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=4d8058558a7251e6ac9222ebd1c2d1270cdd9153 Calendar date format is now yyyy-mm-dd because that is the most 'international' format I can think of. If someone wants to go through the trouble of figuring out the date format for every locale and passing it through, go ahead, otherwise we'll leave it this way. We still need to pass the language through to the datepicker. --- 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("