{"action":"opened","issue":{"url":"https://api.github.com/repos/simshaun/recurr/issues/63","labels_url":"https://api.github.com/repos/simshaun/recurr/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/simshaun/recurr/issues/63/comments","events_url":"https://api.github.com/repos/simshaun/recurr/issues/63/events","html_url":"https://github.com/simshaun/recurr/issues/63","id":77657140,"number":63,"title":"BetweenConstraint bug","user":{"login":"rePhat","id":12444708,"avatar_url":"https://avatars.githubusercontent.com/u/12444708?v=3","gravatar_id":"","url":"https://api.github.com/users/rePhat","html_url":"https://github.com/rePhat","followers_url":"https://api.github.com/users/rePhat/followers","following_url":"https://api.github.com/users/rePhat/following{/other_user}","gists_url":"https://api.github.com/users/rePhat/gists{/gist_id}","starred_url":"https://api.github.com/users/rePhat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rePhat/subscriptions","organizations_url":"https://api.github.com/users/rePhat/orgs","repos_url":"https://api.github.com/users/rePhat/repos","events_url":"https://api.github.com/users/rePhat/events{/privacy}","received_events_url":"https://api.github.com/users/rePhat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-18T13:29:35Z","updated_at":"2015-05-18T13:29:35Z","closed_at":null,"body":"BetweenConstraint doesnot count \"RRULE:COUNT\" from the startDate, it's counting recurrences from the $after variable\r\n```php\r\n$startDate    = '2015-05-30';\r\n$rrule        = 'FREQ=WEEKLY;COUNT=3;BYDAY=SA';\r\n$rule         = new \\Recurr\\Rule($rrule, $startDate);\r\n$transformer  = new \\Recurr\\Transformer\\ArrayTransformer();\r\n\r\n$result = $transformer->transform($rule, null, null);\r\n```\r\nOUTPUT:\r\n2015-05-30\r\n2015-06-06\r\n2015-06-13\r\n```php\r\n$after        = '2015-06-01';\r\n$before       = '2015-07-06';\r\n\r\n$rule         = new \\Recurr\\Rule($rrule, $startDate);\r\n$transformer  = new \\Recurr\\Transformer\\ArrayTransformer();\r\n$constraint   = new \\Recurr\\Transformer\\Constraint\\BetweenConstraint(new \\DateTime($after), new  \\DateTime($before), true);\r\n\r\n$result = $transformer->transform($rule, null, $constraint);\r\n```\r\nOUTPUT: \r\n2015-06-06\r\n2015-06-13\r\n2015-06-20"}}