fix datetime

This commit is contained in:
Nasser committed 2020-11-09 10:33:08 +03:30
1 parent 39b6393630
commit cd4197514d
1 file changed
+1 -1
+1 -1
View File
@@ -127,7 +127,7 @@ trait Creator
* @return datetime $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());
}
/**