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:
parent
b305563622
commit
7097fc8860
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue