diff --git a/src/Bundle/ChillCalendarBundle/Command/MapAndSubscribeUserCalendarCommand.php b/src/Bundle/ChillCalendarBundle/Command/MapAndSubscribeUserCalendarCommand.php index 5fb3f9acc..7d9eec59a 100644 --- a/src/Bundle/ChillCalendarBundle/Command/MapAndSubscribeUserCalendarCommand.php +++ b/src/Bundle/ChillCalendarBundle/Command/MapAndSubscribeUserCalendarCommand.php @@ -59,7 +59,7 @@ class MapAndSubscribeUserCalendarCommand extends Command $offset = 0; /** @var DateInterval $interval the interval before the end of the expiration */ $interval = new DateInterval('P1D'); - $expiration = (new DateTimeImmutable('now'))->add(new DateInterval('PT15M')); + $expiration = (new DateTimeImmutable('now'))->add(new DateInterval($input->getOption('subscription-duration'))); $total = $this->userRepository->countByMostOldSubscriptionOrWithoutSubscriptionOrData($interval); $created = 0; $renewed = 0;