2
0
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:
Sailor 2022-11-02 14:05:37 +00:00
parent c4287c6afa
commit 317bb3a1e0

View File

@ -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