fix end of month bug

This commit is contained in:
Dennis Eichhorn 2019-10-23 13:21:19 +02:00
parent f0cc8e191e
commit 6696066f91

View File

@ -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');
}
/**