Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last day of the month #27

Open
alexd-bes opened this issue Jul 18, 2024 · 0 comments
Open

Last day of the month #27

alexd-bes opened this issue Jul 18, 2024 · 0 comments

Comments

@alexd-bes
Copy link

Hi there,

I am trying to get occurrences function to work with a jsonb column that has rrule settings.
I want to get occurences for once a month, on the last day of the month.
I have tried bymonthday as -1 but get an error about invalid date (looks like it is trying to set a date as -1 in this case).

I also tried setting bymonthday as [28,29,30,31] and bysetpos as [-1], however that gives me the 28,29,30,31 of each month every month.

If I set the bymonthday as 31, it works until I get to February, and then it returns the 28th of every month.

Do you have any suggestions for how I can make occurrences return the last day of the month accurately?
Or how I can amend the sql code locally to fix any bug?

Thanks in advance,

Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant