diff --git a/Stdlib/Base/SmartDateTime.php b/Stdlib/Base/SmartDateTime.php index ca39b8bdf..3c4089a0f 100644 --- a/Stdlib/Base/SmartDateTime.php +++ b/Stdlib/Base/SmartDateTime.php @@ -127,7 +127,7 @@ class SmartDateTime extends \DateTime */ public function getEndOfMonth() : self { - return new self($this->format('Y') . '-' . $this->format('m') . '-' . $this->getDaysOfMonth()); + return new self($this->format('Y-m') . '-' . $this->getDaysOfMonth() . ' 23:59:59'); } /**