From 68651b6c165432b1eacbc99199766135565f70e9 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Mon, 16 Jun 2025 00:34:58 +0200 Subject: [PATCH] Fix FormFactory Date formatting --- database/factories/Form/Models/FormFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/factories/Form/Models/FormFactory.php b/database/factories/Form/Models/FormFactory.php index 2dd34757..0bbfc1f0 100644 --- a/database/factories/Form/Models/FormFactory.php +++ b/database/factories/Form/Models/FormFactory.php @@ -47,8 +47,8 @@ class FormFactory extends Factory 'description' => EditorRequestFactory::new()->toData(), 'excerpt' => $this->faker->words(10, true), 'config' => ['sections' => []], - 'from' => $this->faker->dateTimeBetween('+1 week', '+4 weeks')->format('Y-m-d H:i:s'), - 'to' => $this->faker->dateTimeBetween('+1 week', '+4 weeks')->format('Y-m-d H:i:s'), + 'from' => $this->faker->dateTimeBetween('+1 week', '+4 weeks')->format('Y-m-d'), + 'to' => $this->faker->dateTimeBetween('+1 week', '+4 weeks')->format('Y-m-d'), 'registration_from' => $this->faker->dateTimeBetween(Carbon::parse('-2 weeks'), now())->format('Y-m-d H:i:s'), 'registration_until' => $this->faker->dateTimeBetween(now(), Carbon::parse('+2 weeks'))->format('Y-m-d H:i:s'), 'mail_top' => EditorRequestFactory::new()->toData(),