mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
73_WaterCalculator: bugfix - Sommer/Wintertimer crash fixed
git-svn-id: https://svn.fhem.de/fhem/trunk@26645 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c4287c6afa
commit
317bb3a1e0
@ -152,7 +152,7 @@ sub WaterCalculator_Define($$$)
|
||||
|
||||
### Start timer for execution around midnight
|
||||
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
|
||||
my $EpochNextMidnight = timelocal(1, 0, 0, $mday, $mon, $year+1900) + 86400;
|
||||
my $EpochNextMidnight = Time::Local::timelocal_nocheck(1, 0, 0, $mday+1, $mon, $year+1900);
|
||||
InternalTimer($EpochNextMidnight, "WaterCalculator_MidnightTimer", $hash, 0);
|
||||
|
||||
### For debugging purpose only
|
||||
|
Loading…
Reference in New Issue
Block a user