mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
Cron.pm: wip
git-svn-id: https://svn.fhem.de/fhem/trunk@27893 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
7842299da0
commit
7d33231ea7
@ -717,7 +717,7 @@ sub _next_positional_date {
|
||||
my $d = $days_in_month[$m] - $day_diff;
|
||||
my $candidate = sprintf('%04d%02d%02d', $y, $m, $d);
|
||||
$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
|
||||
(not $inclusive and $candidate > $from_date))) {
|
||||
push @res, $self->{positional_date_cache}->{$item} = $found = $candidate;
|
||||
|
Loading…
x
Reference in New Issue
Block a user