mirror of
https://github.com/darold/squidanalyzer.git
synced 2025-07-31 01:44:29 +02:00
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/\%y/$year/i;
|
||||||
$date_format =~ s/\%m/$month/i;
|
$date_format =~ s/\%m/$month/i;
|
||||||
$date_format =~ s/\%d/$day/i;
|
$date_format =~ s/\%d/$day/i;
|
||||||
|
$date_format =~ s/\%M/$Translate{$month}/i;
|
||||||
|
|
||||||
$date_format =~ s/\D{2,3}//;
|
$date_format =~ s/([^\p{Letter}\p{Digit}]){2,3}/$1/;
|
||||||
$date_format =~ s/^\D+//;
|
$date_format =~ s/^[^\p{Letter}\p{Digit}]+//;
|
||||||
$date_format =~ s/\D+$//;
|
$date_format =~ s/[^\p{Letter}\p{Digit}]+$//;
|
||||||
|
|
||||||
return $date_format;
|
return $date_format;
|
||||||
}
|
}
|
||||||
|
@ -63,6 +63,7 @@ Exclude /etc/squidanalyzer/excluded
|
|||||||
#Lang /etc/squidanalyzer/lang/fr_FR.txt
|
#Lang /etc/squidanalyzer/lang/fr_FR.txt
|
||||||
|
|
||||||
# Date format use to display date (year = %y, month = %m and day = %d)
|
# 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
|
DateFormat %y-%m-%d
|
||||||
|
|
||||||
# Custom Footer. Must be a path to a text file containing HTML code that
|
# Custom Footer. Must be a path to a text file containing HTML code that
|
||||||
|
Loading…
x
Reference in New Issue
Block a user