Finding occurrences seems slow

18 views
Skip to first unread message

Jonas@Stixy

unread,
Jan 11, 2011, 6:16:44 AM1/11/11
to RiCal
If I try this:

ical_str = "BEGIN:VEVENT
DTEND;TZID=Europe/Stockholm;VALUE=DATE-TIME:20001207T141100
DTSTART;TZID=Europe/Stockholm;VALUE=DATE-TIME:20001207T141000
RRULE:FREQ=DAILY;INTERVAL=1
END:VEVENT"

event = RiCal.parse_string(ical_str)
event.first.occurrences({:count => 1, :starting => Time.now})

It takes about 5 seconds to find the occurrence. Is there a better way
of doing this? Am I doing something wrong?

Regards,
/jonas
Reply all
Reply to author
Forward
0 new messages