make _dateFor static

This commit is contained in:
Sebijk 2023-01-22 13:45:47 +01:00
parent 8a675941b8
commit c4bb0e2bc2

View file

@ -133,7 +133,7 @@ class BMCalendar
*
* @return array
*/
public function _dateFor($row, $time, $start, $end)
public static function _dateFor($row, $time, $start, $end)
{
$row['enddate'] = min($end, ($row['enddate'] - $row['startdate']) + $time);
$row['startdate'] = max($start, $time);