fix format datetime
This commit is contained in:
1 parent
b33aa157ec
commit
39b6393630
1 file changed
+1
-1
@@ -127,7 +127,7 @@ trait Creator
|
|||||||
* @return datetime $datetime
|
* @return datetime $datetime
|
||||||
*/
|
*/
|
||||||
public function datetime() {
|
public function datetime() {
|
||||||
return new DateTime("@" . $this->getTimestamp(), $this->getTimeZone());
|
return new static(date('Y-m-d H:i:s', $this->getTimestamp()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user