LeanneStoDomingo / recurtion

A bot that adds recurring tasks to Notion using the official API
https://recurtion.notion.site/Recurtion-Instructions-237146fda1174a9eb6d21e5724a668b4
MIT License
3 stars 1 forks source link

Every Month interval is searching for the date rather than the interval #1

Open hdecoded opened 2 years ago

hdecoded commented 2 years ago

If the date is Aug 31 and the interval is every month the next date should be Sep 30 or Oct 1 but the next date is Oct 31. If the date is Aug 31 and the interval is Every 3 months the next date should be around Nov 30 but the next date is May 31.

every 2 months is working fine.

hdecoded commented 2 years ago

Hey @LeanneStoDomingo,

I have a few ideas which can improve this application. let me know if you are free and interested

LeanneStoDomingo commented 2 years ago

Hi @hdecoded! Sorry for taking so long to respond. I searched through rrule.js's issues and found this: https://github.com/jakubroztocil/rrule/issues/343. It seems that it's expected behavior, so I'll look into implementing the trick that was mentioned in the issue.

I'm interested in listening to any ideas so I'm all ears. Maybe open a new issue or discussion with the ideas.

jeff9315 commented 2 years ago

I just tried this and it seems to work just fine ... Every 3 months on the last day of the month or every month on the last day of the month