mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-30 22:50:02 +02:00
Fix 'monthdays' in the TIME column.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
@ -4916,6 +4916,7 @@ sub do_time( $ ) {
|
|||||||
for my $day ( split /,/, $days ) {
|
for my $day ( split /,/, $days ) {
|
||||||
fatal_error "Invalid day of the month ($day)" unless $day =~ /^\d{1,2}$/ && $day && $day <= 31;
|
fatal_error "Invalid day of the month ($day)" unless $day =~ /^\d{1,2}$/ && $day && $day <= 31;
|
||||||
}
|
}
|
||||||
|
$result .= "--monthday $days ";
|
||||||
} elsif ( $element =~ /^(datestart|datestop)=(\d{4}(-\d{2}(-\d{2}(T\d{1,2}(:\d{1,2}){0,2})?)?)?)$/ ) {
|
} elsif ( $element =~ /^(datestart|datestop)=(\d{4}(-\d{2}(-\d{2}(T\d{1,2}(:\d{1,2}){0,2})?)?)?)$/ ) {
|
||||||
$result .= "--$1 $2 ";
|
$result .= "--$1 $2 ";
|
||||||
} elsif ( $element =~ /^(utc|localtz|kerneltz)$/ ) {
|
} elsif ( $element =~ /^(utc|localtz|kerneltz)$/ ) {
|
||||||
|
Reference in New Issue
Block a user