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(),