Add the use %M to replace month by its 3 letters abbreviation into DateFormat configuration directive. Thanks to pk-its for the feature request.

This commit is contained in:
Darold Gilles 2012-11-26 19:16:49 +01:00
parent b305563622
commit 7097fc8860
2 changed files with 5 additions and 3 deletions

View File

@ -3000,10 +3000,11 @@ sub set_date
$date_format =~ s/\%y/$year/i;
$date_format =~ s/\%m/$month/i;
$date_format =~ s/\%d/$day/i;
$date_format =~ s/\%M/$Translate{$month}/i;
$date_format =~ s/\D{2,3}//;
$date_format =~ s/^\D+//;
$date_format =~ s/\D+$//;
$date_format =~ s/([^\p{Letter}\p{Digit}]){2,3}/$1/;
$date_format =~ s/^[^\p{Letter}\p{Digit}]+//;
$date_format =~ s/[^\p{Letter}\p{Digit}]+$//;
return $date_format;
}

View File

@ -63,6 +63,7 @@ Exclude /etc/squidanalyzer/excluded
#Lang /etc/squidanalyzer/lang/fr_FR.txt
# Date format use to display date (year = %y, month = %m and day = %d)
# You can also use %M to replace month by its 3 letters abbreviation.
DateFormat %y-%m-%d
# Custom Footer. Must be a path to a text file containing HTML code that