From: Laurent Destailleur Date: Sun, 21 Sep 2014 19:40:16 +0000 (+0200) Subject: Try fix for time5 X-Git-Tag: AWSTATS_7_4~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a724b55add854cef520b57a399b5f923e98072f;p=thirdparty%2FAWStats.git Try fix for time5 --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index eab59417..eb14ae3b 100755 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -9138,8 +9138,7 @@ sub DefinePerlParsingFormat { $i++; push @fieldlib, 'date'; $PerlParsingFormat .= -"([^$LogSeparatorWithoutStar]+\\s[^$LogSeparatorWithoutStar]+)" - ; # Need \s for Exchange log files +"([^$LogSeparatorWithoutStar]+\\s[^$LogSeparatorWithoutStar]+)"; # Need \s for Exchange log files } elsif ( $f =~ /%time3$/ ) { # mon d hh:mm:ss or mon d hh:mm:ss or mon dd hh:mm:ss yyyy or day mon dd hh:mm:ss or day mon dd hh:mm:ss yyyy @@ -9163,7 +9162,7 @@ sub DefinePerlParsingFormat { $i++; push @fieldlib, 'tz'; $PerlParsingFormat .= -"([^$LogSeparatorWithoutStar]+T[^$LogSeparatorWithoutStar]+)([-+]\d\d:\d\d)"; +"([^$LogSeparatorWithoutStar]+T[^$LogSeparatorWithoutStar]+)([-+]\\d\\d(?::?\\d\\d)?)"; } # Special for methodurl and methodurlnoprot