mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-12 22:56:34 +00:00
fhem.pl: fix calcAlignTime for the early hours (Forum #102740)
git-svn-id: https://svn.fhem.de/fhem/trunk@19943 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c5cf4ffa61
commit
5eef199518
@ -5790,10 +5790,10 @@ computeAlignTime($$@)
|
||||
return ("timeSpec: $tmErr", undef) if($alErr);
|
||||
|
||||
my $now = int(gettimeofday());
|
||||
my $alTime = ($alHr*60+$alMin)*60+$alSec-fhemTzOffset($now);
|
||||
my $alTime = ($alHr*60+$alMin)*60+$alSec;
|
||||
my $step = ($hr*60+$min)*60+$sec;
|
||||
my $ttime = ($triggertime ? int($triggertime) : $now);
|
||||
my $off = ($ttime % 86400) - 86400;
|
||||
my $off = (($ttime+fhemTzOffset($now)) % 86400) - 86400;
|
||||
while($off < $alTime) {
|
||||
$off += $step;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user