From 31094e8c94ecb93c77ef07eccb6da6cd01457353 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 10 Aug 2017 11:18:46 +0200 Subject: [PATCH] Update SmartDateTime.php --- Datatypes/SmartDateTime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Datatypes/SmartDateTime.php b/Datatypes/SmartDateTime.php index 2c297933f..fb66a0a8a 100644 --- a/Datatypes/SmartDateTime.php +++ b/Datatypes/SmartDateTime.php @@ -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)