mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Looks like it was improperly calculating holidays occuring on a sliding monday.
This commit is contained in:
parent
25c4b80150
commit
3514763523
@ -23,8 +23,9 @@ class holidaycalc {
|
||||
if($holiday['occurence'] != 99)
|
||||
{
|
||||
$dow = $datetime->day_of_week($year,$holiday['month'],1);
|
||||
$day = (7 * $holiday['occurence'] - 6 + ($holiday['dow'] - $dow) % 7);
|
||||
$day = (((7 * $holiday['occurence']) - 6) + (($holiday['dow'] - $dow) % 7));
|
||||
$day += ($day < 1 ? 7 : 0);
|
||||
$day += ($holiday['dow']==1 ? 7 : 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user