2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-14 09:35:29 +00:00

73_GasCalculator: bugfix - Sommer/Wintertimer crash fixed

git-svn-id: https://svn.fhem.de/fhem/trunk@26644 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Sailor 2022-11-02 14:04:55 +00:00
parent 20573e04be
commit c4287c6afa

View File

@ -152,7 +152,7 @@ sub GasCalculator_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, "GasCalculator_MidnightTimer", $hash, 0);
### For debugging purpose only