2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-24 02:59:22 +00:00

98_DOIF.pm: fixed dst-Problem

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

View File

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