feat: remove obsolete date range override

This commit is contained in:
fromme committed 2026-08-31 16:56:36 +02:00
1 parent 86c5d23181
commit 127ced4378
42 files changed
+152 -353

No files matched your search

+4 -2
View File
@@ -21,9 +21,11 @@ class IcsGenerator
$label = sprintf('E&P: Einteilung als %s', $assignment->getJobProfile()->getName());
$address = sprintf("%s\n%s", $assignment->getDestination()->getProduct(), $assignment->getDestination()->getHotel());
$destination = $assignment->getDestination();
$event = Event::create($label)
->startsAt($assignment->getEffectivePeriod()->start)
->endsAt($assignment->getEffectivePeriod()->end->modify('+1 day'))
->startsAt($destination->getDateFrom())
->endsAt($destination->getDateTo()->modify('+1 day'))
->address($address)
->description($label)
;