fix format datetime

This commit is contained in:
Nasser committed 2020-11-08 08:52:39 +03:30
1 parent b33aa157ec
commit 39b6393630
1 file changed
+1 -1
+1 -1
View File
@@ -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()));
} }
/** /**