From: Dave West Date: Sun, 28 Oct 2007 23:40:44 +0000 (+0000) Subject: Fixed the last instance where the time format doesn't follow the user X-Git-Tag: v7.86~2888 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=88a5210ba589b270e275f99493c561d3e445ac14 Fixed the last instance where the time format doesn't follow the user preferances flag. --- diff --git a/webcit/fmt_date.c b/webcit/fmt_date.c index 198e8ff60..a93e75f82 100644 --- a/webcit/fmt_date.c +++ b/webcit/fmt_date.c @@ -81,7 +81,10 @@ void fmt_date(char *buf, time_t thetime, int brief) } } else { - wc_strftime(buf, 32, "%c", &tm); + if (time_format == WC_TIMEFORMAT_24) + wc_strftime(buf, 32, "%a %b %d %Y %T %Z", &tm); + else + wc_strftime(buf, 32, "%a %b %d %Y %r %Z", &tm); } }