{"action":"opened","issue":{"url":"https://api.github.com/repos/rianjs/ical.net/issues/432","repository_url":"https://api.github.com/repos/rianjs/ical.net","labels_url":"https://api.github.com/repos/rianjs/ical.net/issues/432/labels{/name}","comments_url":"https://api.github.com/repos/rianjs/ical.net/issues/432/comments","events_url":"https://api.github.com/repos/rianjs/ical.net/issues/432/events","html_url":"https://github.com/rianjs/ical.net/issues/432","id":396092431,"node_id":"MDU6SXNzdWUzOTYwOTI0MzE=","number":432,"title":"GetOccurrences inconsistent results when end time is on start time for RRule.","user":{"login":"jviau","id":5439812,"node_id":"MDQ6VXNlcjU0Mzk4MTI=","avatar_url":"https://avatars3.githubusercontent.com/u/5439812?v=4","gravatar_id":"","url":"https://api.github.com/users/jviau","html_url":"https://github.com/jviau","followers_url":"https://api.github.com/users/jviau/followers","following_url":"https://api.github.com/users/jviau/following{/other_user}","gists_url":"https://api.github.com/users/jviau/gists{/gist_id}","starred_url":"https://api.github.com/users/jviau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jviau/subscriptions","organizations_url":"https://api.github.com/users/jviau/orgs","repos_url":"https://api.github.com/users/jviau/repos","events_url":"https://api.github.com/users/jviau/events{/privacy}","received_events_url":"https://api.github.com/users/jviau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-04T22:44:10Z","updated_at":"2019-01-04T22:44:10Z","closed_at":null,"author_association":"NONE","body":"iCal.net version: 4.1.9\r\n\r\nWhen you have a recurring vEvent, `GetOccurrences` on the first day of the event has an _inclusive_ end time. On subsequent days, the end time is _exclusive_. The code below highlights the issue. Checking on the first day yields 1 result when the end time is exactly on the schedule time. Adding 1 day to the checked time and checking again yields 0 results.\r\n\r\nCode to reproduce issue:\r\n``` CSharp\r\n            var rrule = new RecurrencePattern\r\n            {\r\n                Frequency = FrequencyType.Daily,\r\n                Until = DateTime.Today.AddMonths(4),\r\n            };\r\n\r\n            var vEvent = new CalendarEvent\r\n            {\r\n                Start = new CalDateTime(DateTime.Parse(\"2019-01-04T08:00Z\")),\r\n            };\r\n\r\n            vEvent.RecurrenceRules.Add(rrule);\r\n\r\n            var checkTime = DateTime.Parse(\"2019-01-04T08:00Z\");\r\n            var occurrences = vEvent.GetOccurrences(checkTime.AddSeconds(-1), checkTime);\r\n            Console.WriteLine(occurrences.Count); // \"1\"\r\n\r\n            checkTime = checkTime.AddDays(1);\r\n            occurrences = vEvent.GetOccurrences(checkTime.AddSeconds(-1), checkTime);\r\n            Console.WriteLine(occurrences.Count); // \"0\" - Should be 1, it is dairly recurrence\r\n```"}}
{"actor":{"display_login":"jviau"}}