Fixed the last instance where the time format doesn't follow the user
authorDave West <davew@uncensored.citadel.org>
Sun, 28 Oct 2007 23:40:44 +0000 (23:40 +0000)
committerDave West <davew@uncensored.citadel.org>
Sun, 28 Oct 2007 23:40:44 +0000 (23:40 +0000)
preferances flag.

webcit/fmt_date.c

index 198e8ff60538a279185641f34abb0541fc333e43..a93e75f827883860e32e5462733b45774e7d03ba 100644 (file)
@@ -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);
        }
 }