Update SmartDateTime.php

This commit is contained in:
Dennis Eichhorn 2017-08-10 11:18:46 +02:00 committed by GitHub
parent 7c75052de0
commit 31094e8c94

View File

@ -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)