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

Recurrency rule 'Every last ...day of the month' is not correctly processed. #73

Open
WimRaaij opened this issue Nov 4, 2023 · 0 comments

Comments

@WimRaaij
Copy link

WimRaaij commented Nov 4, 2023

I made an event in my Google calender with recurrency "Every last tuesday of the month". Starting at tuesday 28 november (for 6 times).
The output from the function parseFile is an array. The recurrences part is shown below.
[RECURRENCES] => Array(
[0] => DateTime Object ( [date] => 2023-11-28 20:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam)
[1] => DateTime Object ( [date] => 2023-12-26 20:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam)
[2] => DateTime Object ( [date] => 2024-01-23 20:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam)
[3] => DateTime Object ( [date] => 2024-02-20 20:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam)
[4] => DateTime Object ( [date] => 2024-03-19 20:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam)
[5] => DateTime Object ( [date] => 2024-04-16 20:00:00.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam))

As you can see the dates are tuesdays but not last tuesdays!

I'am not a php-pro. So I cannot pinpoint the code thats causing this error.

Thanks in advance for your attention.
Wim Raaij

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