mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 22:38:42 +00:00
fix end of month bug
This commit is contained in:
parent
f0cc8e191e
commit
6696066f91
|
|
@ -127,7 +127,7 @@ class SmartDateTime extends \DateTime
|
||||||
*/
|
*/
|
||||||
public function getEndOfMonth() : self
|
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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user