diff --git a/src/Traits/Creator.php b/src/Traits/Creator.php index aac9e64..aad0117 100644 --- a/src/Traits/Creator.php +++ b/src/Traits/Creator.php @@ -127,7 +127,7 @@ trait Creator * @return datetime $datetime */ public function datetime() { - return new DateTime("@" . $this->getTimestamp(), $this->getTimeZone()); + return new static(date('Y-m-d H:i:s', $this->getTimestamp())); } /**