Adjust end date of periods minus one day for groups.swiss contingents

This commit is contained in:
Björn Fromme
2020-04-01 14:14:47 +02:00
parent 0ea54bc8e1
commit 5287a3d47a
@@ -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;