From: eldy <> Date: Wed, 3 Jan 2001 22:14:49 +0000 (+0000) Subject: Correct the zero padding problem with IIS for days under 10. X-Git-Tag: AWSTATS_1_0~359 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5024e8b764df3732432459b190e33d7d862fa86;p=thirdparty%2FAWStats.git Correct the zero padding problem with IIS for days under 10. --- diff --git a/awstats.pl b/awstats.pl index f0d1909d..ed87939f 100644 --- a/awstats.pl +++ b/awstats.pl @@ -1573,6 +1573,7 @@ $LogFileWithoutLog=$LogFile;$LogFileWithoutLog =~ s/\.log$//; if ($nowyear < 100) { $nowyear+=2000; } else { $nowyear+=1900; } $nowsmallyear=$nowyear;$nowsmallyear =~ s/^..//; $nowmonth++;if ($nowmonth < 10) { $nowmonth = "0$nowmonth"; } +if ($nowday < 10) { $nowday = "0$nowday"; } if ($QueryString =~ /year=[\d][\d][\d][\d]/) { $YearRequired=$QueryString; $YearRequired =~ s/.*year=//; $YearRequired =~ s/&.*//; } if ($YearRequired eq "") { $YearRequired=$nowyear; }