]> code.citadel.org Git - citadel.git/blobdiff - webcit/fmt_date.c
* for some reason copying an event from our calendar seems to be the better way to...
[citadel.git] / webcit / fmt_date.c
index 578ca9875e7e70bbfe62c5bb963559c563289f06..2b66b0e3bdd3b3c816cba214a70f135dbc6bb163 100644 (file)
@@ -29,7 +29,7 @@ size_t wc_strftime(char *s, size_t max, const char *format, const struct tm *tm)
        if (wc_locales[WC->selected_language] == NULL) {
                return strftime(s, max, format, tm);
        }
-       else {
+       else { // TODO: this gives empty strings on debian.
                return strftime_l(s, max, format, tm, wc_locales[WC->selected_language]);
        }
 #else
@@ -56,13 +56,13 @@ void fmt_date(char *buf, time_t thetime, int brief)
        today_timet = time(NULL);
        localtime_r(&today_timet, &today_tm);
 
-       localtime_r(&thetime, &tm);
+       localtime_r(&thetime, &tm);/*
        hour = tm.tm_hour;
        if (hour == 0)
                hour = 12;
        else if (hour > 12)
                hour = hour - 12;
-
+                                  */
        buf[0] = 0;
 
        if (brief) {