patch-codeRewrite #92
| @@ -5,7 +5,7 @@ UPD 2022-01-02_07:57:18 2677 lib/FHEM/Automation/ShuttersControl/Roommate.pm | ||||
| UPD 2022-01-02_08:52:49 32016 lib/FHEM/Automation/ShuttersControl/Shutters.pm | ||||
| UPD 2022-01-02_07:57:18 25452 lib/FHEM/Automation/ShuttersControl/Shading.pm | ||||
| UPD 2022-01-02_07:57:18 112122 lib/FHEM/Automation/ShuttersControl/EventProcessingFunctions.pm | ||||
| UPD 2022-01-10_10:41:32 40708 lib/FHEM/Automation/ShuttersControl/Helper.pm | ||||
| UPD 2022-01-10_11:00:42 40571 lib/FHEM/Automation/ShuttersControl/Helper.pm | ||||
| UPD 2022-01-02_07:57:18 2209 lib/FHEM/Automation/ShuttersControl/Window.pm | ||||
| UPD 2022-01-10_10:41:34 11858 lib/FHEM/Automation/ShuttersControl/Dev/Attr.pm | ||||
| UPD 2022-01-01_20:15:38 7265 lib/FHEM/Automation/ShuttersControl/Dev/Readings.pm | ||||
|   | ||||
| @@ -1020,22 +1020,17 @@ sub IsAdv { | ||||
|     my $adv = 0; | ||||
|     $year += 1900; | ||||
|  | ||||
|     if ( $month < 2 ) { | ||||
|         if ( | ||||
|             ( | ||||
|                    $month < 1 | ||||
|     if (   $month < 1 | ||||
|         && $FHEM::Automation::ShuttersControl::ascDev->getAdvEndDate eq | ||||
|                 'EpiphanyDay' | ||||
|                 && $monthday < 7 | ||||
|             ) | ||||
|             || (   $month < 2 | ||||
|                 && $FHEM::Automation::ShuttersControl::ascDev->getAdvEndDate eq | ||||
|                 'CandlemasDay' | ||||
|                 && $monthday < 3 ) | ||||
|           ) | ||||
|         'EpiphanyDay' ) | ||||
|     { | ||||
|             $adv = 1; | ||||
|         $adv = $monthday < 7 ? 1 : 0; | ||||
|     } | ||||
|     elsif ($month < 2 | ||||
|         && $FHEM::Automation::ShuttersControl::ascDev->getAdvEndDate eq | ||||
|         'CandlemasDay' ) | ||||
|     { | ||||
|         $adv = $monthday < 3 ? 1 : 0; | ||||
|     } | ||||
|     else { | ||||
|         my $time = str2time( $year . '-12-25' ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user