forked from extern/egroupware
* Calendar/Categrory report: Fix miscalculation of multidays events because of wrong week number
This commit is contained in:
parent
c7089cadd9
commit
3e4d1acfa2
@ -107,7 +107,7 @@ class calendar_category_report extends calendar_ui{
|
||||
$day_timestamp = strtotime($day_index);
|
||||
|
||||
// week number
|
||||
$week_number = date('W', $day_timestamp);
|
||||
$week_number = ltrim(date('W', $day_timestamp), '0');
|
||||
|
||||
$previous_week_number = $week_number == 1? ($events_log[$user_id]['53']? 53: 52): $week_number -1;
|
||||
// check if multidays event starts before start range
|
||||
|
Loading…
Reference in New Issue
Block a user