forked from extern/egroupware
This part of a major fix for the calendar.
This commit is contained in:
parent
d3887570b2
commit
b02081a1ec
@ -92,12 +92,12 @@ class holidaycalc {
|
||||
$holidays[$i]['month'] = $holiday['month'];
|
||||
$holidays[$i]['occurence'] = $holiday['occurence'];
|
||||
$holidays[$i]['dow'] = $holiday['dow'];
|
||||
$holidays[$i]['date'] = mktime(0,0,0,$holiday['month'],$day+1,$year) - $datetime->tz_offset;
|
||||
$holidays[$i]['date'] = mktime(0,0,0,$holiday['month'],$day+1,$year);
|
||||
$holidays[$i]['obervance_rule'] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
$date = mktime(0,0,0,$holiday['month'],$day,$year) - $datetime->tz_offset;
|
||||
$date = mktime(0,0,0,$holiday['month'],$day,$year);
|
||||
|
||||
return $date;
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ class holidaycalc {
|
||||
$holidays[$i]['month'] = $holiday['month'];
|
||||
$holidays[$i]['occurence'] = $holiday['occurence'];
|
||||
$holidays[$i]['dow'] = $holiday['dow'];
|
||||
$holidays[$i]['date'] = mktime(0,0,0,$holiday['month'],$day+1,$year) - $datetime->tz_offset;
|
||||
$holidays[$i]['date'] = mktime(0,0,0,$holiday['month'],$day+1,$year);
|
||||
$holidays[$i]['obervance_rule'] = 0;
|
||||
}
|
||||
elseif($dow == 6)
|
||||
@ -72,12 +72,12 @@ class holidaycalc {
|
||||
$holidays[$i]['month'] = $holiday['month'];
|
||||
$holidays[$i]['occurence'] = $holiday['occurence'];
|
||||
$holidays[$i]['dow'] = $holiday['dow'];
|
||||
$holidays[$i]['date'] = mktime(0,0,0,$holiday['month'],$day-1,$year) - $datetime->tz_offset;
|
||||
$holidays[$i]['date'] = mktime(0,0,0,$holiday['month'],$day-1,$year);
|
||||
$holidays[$i]['obervance_rule'] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
$date = mktime(0,0,0,$holiday['month'],$day,$year) - $datetime->tz_offset;
|
||||
$date = mktime(0,0,0,$holiday['month'],$day,$year);
|
||||
|
||||
return $date;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user