fix: make time always zero in start and end date-time

This commit is contained in:
Veronika Fehérvíziová
2025-10-31 20:08:58 +01:00
parent 00f5bd495c
commit 1057a8250c
@@ -16,8 +16,8 @@ class InternshipFactory extends Factory
*/ */
public function definition(): array public function definition(): array
{ {
$start = fake()->dateTime(); $start = fake()->dateTime()->setTime(0, 0, 0, 0);
$end = (clone $start)->modify('+' . fake()->numberBetween(150, 160) . ' hours'); $end = (clone $start)->modify('+' . fake()->numberBetween(150, 160) . ' hours')->setTime(0, 0, 0, 0);
return [ return [
'user_id' => 0, 'user_id' => 0,