Cron.pm: wip
git-svn-id: https://svn.fhem.de/fhem/trunk@27893 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -717,7 +717,7 @@ sub _next_positional_date {
|
|||||||
my $d = $days_in_month[$m] - $day_diff;
|
my $d = $days_in_month[$m] - $day_diff;
|
||||||
my $candidate = sprintf('%04d%02d%02d', $y, $m, $d);
|
my $candidate = sprintf('%04d%02d%02d', $y, $m, $d);
|
||||||
$self->log(5, 'candidate %04d-%02d-%02d', $y, $m, $d) if $ENV{EXTENDED_DEBUG};
|
$self->log(5, 'candidate %04d-%02d-%02d', $y, $m, $d) if $ENV{EXTENDED_DEBUG};
|
||||||
if ($d > 1 and $self->is_valid_date($y, $m, $d) and
|
if ($d > 0 and $self->is_valid_date($y, $m, $d) and
|
||||||
(($inclusive and $candidate >= $from_date) or
|
(($inclusive and $candidate >= $from_date) or
|
||||||
(not $inclusive and $candidate > $from_date))) {
|
(not $inclusive and $candidate > $from_date))) {
|
||||||
push @res, $self->{positional_date_cache}->{$item} = $found = $candidate;
|
push @res, $self->{positional_date_cache}->{$item} = $found = $candidate;
|
||||||
|
|||||||
Reference in New Issue
Block a user