feat: remove obsolete date range override
This commit is contained in:
1 parent
86c5d23181
commit
127ced4378
42 files changed
+152
-353
No files matched your search
@@ -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)
|
||||
;
|
||||
|
||||
Reference in new issue
Block a user