From c8028b8e60103804e9234a5c680652192c8138d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 6 Jul 2022 17:09:04 +0200 Subject: [PATCH] set correct duration for subscribing to remote calendar --- .../Command/MapAndSubscribeUserCalendarCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;