diff --git a/src/Traits/Creator.php b/src/Traits/Creator.php index 8340bb5..07502e2 100644 --- a/src/Traits/Creator.php +++ b/src/Traits/Creator.php @@ -133,6 +133,7 @@ public function datetime() { $dt = new DateTime(date('Y-m-d H:i:s', $this->getTimestamp())); $dt->setTimezone($this->getTimezone()); + return $dt; } diff --git a/tests/CreatorTest.php b/tests/CreatorTest.php index 6ce6a53..726c1d0 100644 --- a/tests/CreatorTest.php +++ b/tests/CreatorTest.php @@ -6,7 +6,6 @@ use DateTimeZone; use Hekmatinasser\Verta\Facades\Verta as VertaFacade; use Hekmatinasser\Verta\Verta; -use Illuminate\Support\Facades\Date; use PHPUnit\Framework\TestCase; class CreatorTest extends TestCase