From: eldy <> Date: Sat, 27 Dec 2003 17:24:00 +0000 (+0000) Subject: Fixed bug 865510 X-Git-Tag: AWSTATS_6_0_RELEASE~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49453b7e7f67a3516ccdccca5e37e5929a46e4d2;p=thirdparty%2FAWStats.git Fixed bug 865510 --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index 208b3b96..75cef8e8 100644 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -4703,8 +4703,9 @@ sub DefinePerlParsingFormat { $pos_date = $i; $i++; push @fieldlib, 'date'; $PerlParsingFormat .= "([^$LogSeparatorWithoutStar]+\\s[^$LogSeparatorWithoutStar]+)"; # Need \s for Exchange log files } - elsif ($f =~ /%syslog$/) { # TODO Add a tag time3 for date 'Mon 2 10:20:05' - $PerlParsingFormat .= "\\w\\w\\w \\s??\\d+ \\d\\d:\\d\\d:\\d\\d [^$LogSeparatorWithoutStar]+"; + elsif ($f =~ /%time3$/) { # mon d hh:mm:ss + $pos_date = $i; $i++; push @fieldlib, 'date'; + $PerlParsingFormat .= "(\\w\\w\\w \\s??\\d+ \\d\\d:\\d\\d:\\d\\d)"; } # Special for methodurl and methodurlnoprot elsif ($f =~ /%methodurl$/) {