Fix FormFactory Date formatting

This commit is contained in:
philipp lang 2025-06-16 00:34:58 +02:00
parent cff62ebc1d
commit 68651b6c16
1 changed files with 2 additions and 2 deletions

View File

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