From 53580f4864f63ea2c84cc7a2f62e544609e9b89f Mon Sep 17 00:00:00 2001 From: Damian <> Date: Tue, 29 Oct 2019 18:50:08 +0000 Subject: [PATCH] 98_DOIF.pm: fixed dst-Problem git-svn-id: https://svn.fhem.de/fhem/trunk@20423 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_DOIF.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fhem/FHEM/98_DOIF.pm b/fhem/FHEM/98_DOIF.pm index 1a5b2ead7..4e5d0bf6e 100644 --- a/fhem/FHEM/98_DOIF.pm +++ b/fhem/FHEM/98_DOIF.pm @@ -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})) {