2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-02 13:05:12 +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 9e603e0b2e
commit 9f39280d65

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