fix condition

This commit is contained in:
2022-01-10 11:04:43 +01:00
parent a1d19a797d
commit 12f48e98b5
2 changed files with 2 additions and 2 deletions

View File

@ -1030,7 +1030,7 @@ sub IsAdv {
&& $FHEM::Automation::ShuttersControl::ascDev->getAdvEndDate eq
'CandlemasDay' )
{
$adv = $monthday < 3 ? 1 : 0;
$adv = $month = 1 || ( $month = 2 && $monthday < 3 ) ? 1 : 0;
}
else {
my $time = str2time( $year . '-12-25' );