You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's been a long time, sorry for never answering this issue.
The way you can handle this is by ensuring you're always calling next! before next. The issue here is that we use Date.today as the starting point and next doesn't do anything other than return whatever the current date for that event is.
If you try something like below, you can see that the dates are correctly calculated.
r=Recurrence.new(every: :month,on: Date.today.day,interval: 1,until: 3.months.from_now.to_date,except: Date.today)pr.each#=> #<Enumerator: [Mon, 22 Mar 2021, Thu, 22 Apr 2021, Sat, 22 May 2021]:each>
As far as I can tell, except doesn't work with Date.today (Even if it's a string, or inside an array)
Let me know if you need any more info
The text was updated successfully, but these errors were encountered: