square / ruby-rrule

RRULE expansion for Ruby
Apache License 2.0
171 stars 25 forks source link

not working in the past #29

Closed stydav closed 4 years ago

stydav commented 4 years ago

parser does not give any result for past dates:

"rrule FREQ=WEEKLY;BYDAY=MO;INTERVAL=1" "2020-05-11 00:00:00 +0200 to 2020-05-17 00:00:00 +0200" []

future dates: "rrule FREQ=WEEKLY;BYDAY=MO;INTERVAL=1" "2020-05-18 00:00:00 +0200 to 2020-05-24 00:00:00 +0200" [Mon, 18 May 2020 13:00:03 UTC +00:00]

using rrule_parsed.between(start_date, end_date)

am i mistaken with the assumption that it calculates only future executions?