]> code.citadel.org Git - citadel.git/blobdiff - webcit/fmt_date.c
* webcit part of michael meskes full day calendar patch; accidentely committed it...
[citadel.git] / webcit / fmt_date.c
index 04cb391f5b8698ee990622a46bc62091be15d7ba..ecc7b78bbb9fbcf7470bfb349c9ffe6ac408c1df 100644 (file)
@@ -67,6 +67,7 @@ void webcit_fmt_date(char *buf, time_t thetime, int Format)
         *                 show the month and day, and the time
         *                    older than 6 months, show only the date
         * DATEFMT_RAWDATE:   show full date, regardless of age 
+        * DATEFMT_LOCALEDATE:   show full date as prefered for the locale
         */
 
        switch (Format) {
@@ -98,6 +99,9 @@ void webcit_fmt_date(char *buf, time_t thetime, int Format)
                case DATEFMT_RAWDATE:
                        wc_strftime(buf, 32, "%a %b %d %Y", &tm);
                        break;
+               case DATEFMT_LOCALEDATE:
+                       wc_strftime(buf, 32, "%x", &tm);
+                       break;
        }
 }