JeroenvO / ics-parser

Automatically exported from code.google.com/p/ics-parser
0 stars 0 forks source link

eventsFromRange: fail to search event by range #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. call function eventsFromRange with input like '2013-10-01', '2013-12-31'
2. returned events are from now to 2038/01/18
3.

What is the expected output? What do you see instead?
events are from '2013-10-01' to '2013-12-31'

What version of the product are you using? On what operating system?
r13, is CentOS 5.6, php5.3.3

Please provide any additional information below.
event range should not function like its name

Original issue reported on code.google.com by hkhomes....@gmail.com on 16 Jul 2013 at 9:01

GoogleCodeExporter commented 9 years ago
Unable to recreate this issue.

If I initialize the Class with:
$ical   = new ICal('basic.ics');

Then build an array of values between 2 dates with:
$events = $ical->eventsFromRange('2013-07-01','2013-08-01');

The array is correct. Only containing events between the two dates.

However this project seems abandoned. You may wish you download the new ICS 
Parser which is based on this, but also includes RRULE handling to allow for 
recurring events. This new project also addresses a couple other small bugs 
that were never fixed on this original project.

Get it here: https://github.com/johngrogg/ics-parser

Original comment by brianate...@gmail.com on 17 Jul 2013 at 7:49