98_DOIF.pm: fixed dst-Problem

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@20423 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Damian 2019-10-29 18:50:08 +00:00
parent c325a88639
commit 1ffba15201

View File

@ -2901,6 +2901,7 @@ sub DOIF_SetTimer {
if ($second <= $sec_today and !$rel or defined ($next_day) and !$rel and $second < 86400 and !$align) { if ($second <= $sec_today and !$rel or defined ($next_day) and !$rel and $second < 86400 and !$align) {
$next_time+=86400; $next_time+=86400;
}
($sec,$min,$hour,$mday,$month,$year,$wday,$yday,$isdst) = localtime($next_time); ($sec,$min,$hour,$mday,$month,$year,$wday,$yday,$isdst) = localtime($next_time);
if ($isdst_now != $isdst) { if ($isdst_now != $isdst) {
if ($isdst_now == 1) { if ($isdst_now == 1) {
@ -2909,7 +2910,6 @@ sub DOIF_SetTimer {
$next_time-=3600 if ($second>=3*3600 or $second <= $sec_today and $second<2*3600); $next_time-=3600 if ($second>=3*3600 or $second <= $sec_today and $second<2*3600);
} }
} }
}
if (defined ($hash->{intervalfunc}{$nr})) { if (defined ($hash->{intervalfunc}{$nr})) {
my $hms = $hms_now; my $hms = $hms_now;
$wday = $wday_now; $wday = $wday_now;