Merge branch 'hotfix/groups-swiss-date-end-fix'

This commit is contained in:
Björn Fromme
2020-04-01 14:14:51 +02:00
@@ -164,7 +164,7 @@ class GroupsSwissService implements SingletonInterface, LoggerAwareInterface
'from' => $event->getBegin(),
];
} elseif (true === is_array($item) && $status !== $contingentStatus) {
$item['to'] = $event->getEnd();
$item['to'] = $event->getEnd()->modify('-1 day');
$statusCode = Contingent::STATUS_ONREQUEST === $status ? 1 : 2;
$this->addItem($item, $statusCode, $apiKey, $houseNumber);
$item = null;