FIX #4097 Public holiday calculation
The last day was ommitted and never parsed. If this day was a saturday, sunday or public holiday day, it was not computed.
This commit is contained in:
parent
d64664f5a7
commit
973e42d10f
@ -566,7 +566,7 @@ function num_public_holiday($timestampStart, $timestampEnd, $countrycode='FR')
|
|||||||
if ((($timestampEnd - $timestampStart) % 86400) != 0) return 'ErrorDates must use same hours and must be GMT dates';
|
if ((($timestampEnd - $timestampStart) % 86400) != 0) return 'ErrorDates must use same hours and must be GMT dates';
|
||||||
|
|
||||||
$i=0;
|
$i=0;
|
||||||
while ($timestampStart < $timestampEnd && ($i < 50000)) // Loop end when equals (Test on i is a security loop to avoid infinite loop)
|
while ($timestampStart <= $timestampEnd && ($i < 50000)) // Loop end when equals (Test on i is a security loop to avoid infinite loop)
|
||||||
{
|
{
|
||||||
$ferie=false;
|
$ferie=false;
|
||||||
$countryfound=0;
|
$countryfound=0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user