From a7a26bb154478b13b527d56b7c9977503d5e06bc Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Tue, 28 Feb 2023 14:50:48 -0800 Subject: [PATCH] Fix License Factory --- database/factories/LicenseFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/factories/LicenseFactory.php b/database/factories/LicenseFactory.php index 2aa681c0d2..399b468581 100644 --- a/database/factories/LicenseFactory.php +++ b/database/factories/LicenseFactory.php @@ -46,7 +46,7 @@ class LicenseFactory extends Factory 'serial' => $this->faker->uuid, 'notes' => 'Created by DB seeder', 'seats' => $this->faker->numberBetween(1, 10), - 'purchase_date' => $this->faker->dateTimeBetween('-1 years', 'now', date_default_timezone_get()), + 'purchase_date' => $this->faker->dateTimeBetween('-1 years', 'now', date_default_timezone_get())->format('Y-m-d'), 'order_number' => $this->faker->numberBetween(1000000, 50000000), 'expiration_date' => $this->faker->dateTimeBetween('now', '+3 years', date_default_timezone_get())->format('Y-m-d H:i:s'), 'reassignable' => $this->faker->boolean(),