fix bug then holidaywe for sunrise

This commit is contained in:
Marko Oldenburg 2018-11-19 12:16:54 +01:00
parent 1acd3e35da
commit 253853086e

View File

@ -2083,10 +2083,9 @@ sub ShuttersSunrise($$$) {
if ( if (
IsWe() IsWe()
and int( gettimeofday() / 86400 ) == int( and int( gettimeofday() / 86400 ) == int(
computeAlignTime( computeAlignTime( '24:00',
'24:00', $shutters->getTimeUpWeHoliday $shutters->getTimeUpWeHoliday ) / 86400
) )
) / 86400
) )
{ {
$shuttersSunriseUnixtime = $shuttersSunriseUnixtime =
@ -2095,10 +2094,9 @@ sub ShuttersSunrise($$$) {
} }
elsif ( elsif (
int( gettimeofday() / 86400 ) == int( int( gettimeofday() / 86400 ) == int(
computeAlignTime( computeAlignTime( '24:00',
'24:00', $shutters->getTimeUpEarly $shutters->getTimeUpEarly ) / 86400
) )
) / 86400
) )
{ {
$shuttersSunriseUnixtime = $shuttersSunriseUnixtime =