fix datetime
This commit is contained in:
1 parent
39b6393630
commit
cd4197514d
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 static(date('Y-m-d H:i:s', $this->getTimestamp()));
|
return new DateTime(date('Y-m-d H:i:s', $this->getTimestamp()), $this->getTimezone());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user