You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Valid values are 1 to 31 or -31 to -1. It would be nice to raise error on invalid value, or min/max to avoid infinite loop.
Here is a test case :
$timezone = 'America/New_York';
$startDate = new \DateTime('2013-06-12 20:00:00', new \DateTimeZone($timezone));
$endDate = new \DateTime('2013-06-14 20:00:00', new \DateTimeZone($timezone)); // Optional
$rule = new \Recurr\Rule('FREQ=MONTHLY;COUNT=5', $startDate, $endDate, $timezone);
$rule->setByMonthDay(array(31)); // OK, june have only 30 days
$rule->setByMonthDay(array(32)); // Loop
$transformer = new \Recurr\Transformer\ArrayTransformer();
print_r($transformer->transform($rule));
[Edit] infinite loop on >= 32 and <= -33
The text was updated successfully, but these errors were encountered:
Valid values are 1 to 31 or -31 to -1. It would be nice to raise error on invalid value, or min/max to avoid infinite loop.
Here is a test case :
[Edit] infinite loop on >= 32 and <= -33
The text was updated successfully, but these errors were encountered: