mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-20 13:28:42 +00:00
Update SmartDateTime.php
This commit is contained in:
parent
7c75052de0
commit
31094e8c94
|
|
@ -283,7 +283,7 @@ class SmartDateTime extends \DateTime
|
|||
$diffToWeekStart = $diffToWeekStart === 0 ? 7 : $diffToWeekStart;
|
||||
|
||||
// get days of previous month
|
||||
$previousMonth = self::createModify(0, -1);
|
||||
$previousMonth = $this->createModify(0, -1);
|
||||
$daysPreviousMonth = $previousMonth->getDaysOfMonth();
|
||||
|
||||
// add difference to $weekStartsWith counting backwards from days of previous month (reorder so that lowest value first)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user