From 1057a8250cbe5912b7c6c57bd93df1583822c9f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Veronika=20Feh=C3=A9rv=C3=ADziov=C3=A1?= <128744051+VeronikaFeherviziova@users.noreply.github.com> Date: Fri, 31 Oct 2025 20:08:58 +0100 Subject: [PATCH] fix: make time always zero in start and end date-time --- backend/database/factories/InternshipFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/database/factories/InternshipFactory.php b/backend/database/factories/InternshipFactory.php index 8981b71..33837de 100644 --- a/backend/database/factories/InternshipFactory.php +++ b/backend/database/factories/InternshipFactory.php @@ -16,8 +16,8 @@ class InternshipFactory extends Factory */ public function definition(): array { - $start = fake()->dateTime(); - $end = (clone $start)->modify('+' . fake()->numberBetween(150, 160) . ' hours'); + $start = fake()->dateTime()->setTime(0, 0, 0, 0); + $end = (clone $start)->modify('+' . fake()->numberBetween(150, 160) . ' hours')->setTime(0, 0, 0, 0); return [ 'user_id' => 0,