mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-24 09:09:19 +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:
parent
4a6dbb1b48
commit
53580f4864
@ -2901,13 +2901,13 @@ 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);
|
}
|
||||||
if ($isdst_now != $isdst) {
|
($sec,$min,$hour,$mday,$month,$year,$wday,$yday,$isdst) = localtime($next_time);
|
||||||
if ($isdst_now == 1) {
|
if ($isdst_now != $isdst) {
|
||||||
$next_time+=3600 if ($isdst == 0);
|
if ($isdst_now == 1) {
|
||||||
} else {
|
$next_time+=3600 if ($isdst == 0);
|
||||||
$next_time-=3600 if ($second>=3*3600 or $second <= $sec_today and $second<2*3600);
|
} else {
|
||||||
}
|
$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})) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user