{"action":"opened","issue":{"url":"https://api.github.com/repos/rlanvin/php-rrule/issues/13","repository_url":"https://api.github.com/repos/rlanvin/php-rrule","labels_url":"https://api.github.com/repos/rlanvin/php-rrule/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/rlanvin/php-rrule/issues/13/comments","events_url":"https://api.github.com/repos/rlanvin/php-rrule/issues/13/events","html_url":"https://github.com/rlanvin/php-rrule/issues/13","id":161882503,"number":13,"title":"Last occurence missing","user":{"login":"BrunoSpy","id":954222,"avatar_url":"https://avatars.githubusercontent.com/u/954222?v=3","gravatar_id":"","url":"https://api.github.com/users/BrunoSpy","html_url":"https://github.com/BrunoSpy","followers_url":"https://api.github.com/users/BrunoSpy/followers","following_url":"https://api.github.com/users/BrunoSpy/following{/other_user}","gists_url":"https://api.github.com/users/BrunoSpy/gists{/gist_id}","starred_url":"https://api.github.com/users/BrunoSpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrunoSpy/subscriptions","organizations_url":"https://api.github.com/users/BrunoSpy/orgs","repos_url":"https://api.github.com/users/BrunoSpy/repos","events_url":"https://api.github.com/users/BrunoSpy/events{/privacy}","received_events_url":"https://api.github.com/users/BrunoSpy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-23T09:50:02Z","updated_at":"2016-06-23T09:50:02Z","closed_at":null,"body":"Hi,\r\nFirst : thank you for this wonderful library !\r\n\r\nWhen I create a new recurrence from a string pattern like the following one, the last occurence is missing.\r\nExample : \r\n`FREQ=DAILY;INTERVAL=1;UNTIL=20160629`\r\n\r\n```php\r\n$recurrence = new Recurrence($startdate, $pattern);\r\n//$startdate 24/06/2016 10:00 UTC for the example below\r\n$rset = $recurrence->getRSet();\r\nforeach($rset as $occurence) {\r\n   print_r($occurrence);\r\n}\r\n```\r\n\r\nThat will give you : \r\n\r\n```\r\n[Thu Jun 23 11:17:43.218553 2016] [:error] [pid 6821] [client 127.0.0.1:50212] DateTime Object\\n(\\n    [date] => 2016-06-24 10:00:00.000000\\n    [timezone_type] => 3\\n    [timezone] => Etc/GMT\\n)\\n, referer: http://127.0.0.1/epeires2b/\r\n[Thu Jun 23 11:17:43.219020 2016] [:error] [pid 6821] [client 127.0.0.1:50212] DateTime Object\\n(\\n    [date] => 2016-06-25 10:00:00.000000\\n    [timezone_type] => 3\\n    [timezone] => Etc/GMT\\n)\\n, referer: http://127.0.0.1/epeires2b/\r\n[Thu Jun 23 11:17:43.219498 2016] [:error] [pid 6821] [client 127.0.0.1:50212] DateTime Object\\n(\\n    [date] => 2016-06-26 10:00:00.000000\\n    [timezone_type] => 3\\n    [timezone] => Etc/GMT\\n)\\n, referer: http://127.0.0.1/epeires2b/\r\n[Thu Jun 23 11:17:43.220017 2016] [:error] [pid 6821] [client 127.0.0.1:50212] DateTime Object\\n(\\n    [date] => 2016-06-27 10:00:00.000000\\n    [timezone_type] => 3\\n    [timezone] => Etc/GMT\\n)\\n, referer: http://127.0.0.1/epeires2b/\r\n[Thu Jun 23 11:17:43.220390 2016] [:error] [pid 6821] [client 127.0.0.1:50212] DateTime Object\\n(\\n    [date] => 2016-06-28 10:00:00.000000\\n    [timezone_type] => 3\\n    [timezone] => Etc/GMT\\n)\\n, referer: http://127.0.0.1/epeires2b/\r\n```"}}
{"actor":{"display_login":"BrunoSpy"}}