]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #2310: Incorrect default time/date log format
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 14 Apr 2008 21:03:20 +0000 (23:03 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Mon, 14 Apr 2008 21:03:20 +0000 (23:03 +0200)
The %tl and %tg logformat tags is meant to use the same date format as
Apache/NCSA, but in Squid-3 there was a space instead of : between the
date and time.

This is not seen in Squid-2.

src/access_log.cc

index 9d1459529b56d29ef86d0c28402d5383881faa4a..082a6294622628742ddee9f06e76ad7ddd2c97ac 100644 (file)
@@ -600,7 +600,7 @@ accessLogCustom(AccessLogEntry * al, customlog * log)
                 spec = fmt->data.timespec;
 
                 if (!spec)
-                    spec = "%d/%b/%Y %H:%M:%S";
+                    spec = "%d/%b/%Y:%H:%M:%S";
 
                 if (fmt->type == LFT_TIME_LOCALTIME)
                     t = localtime(&squid_curtime);