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

Does not regard Feb end date as end date frequency #164

Open
rambo666 opened this issue Jul 11, 2019 · 1 comment
Open

Does not regard Feb end date as end date frequency #164

rambo666 opened this issue Jul 11, 2019 · 1 comment

Comments

@rambo666
Copy link

rambo666 commented Jul 11, 2019

Hie,
For start date with 2017-02-29 using

$transformerConfig->enableLastDayOfMonthFix();
$rule= new \Recurr\Rule('FREQ=MONTHLY;COUNT=3', $startDate, null, $timezone);

Returns
2017-02-29
2017-03-29
2017-04-29

However I was suppose to get
2017-02-29
2017-03-31
2017-04-30

How is this possible ? Using version 4.0

@devfrey
Copy link

devfrey commented Mar 11, 2020

I think this is intended behaviour. If you try it with a start date of April 30 (last day of April), you will get May 30, June 30, and July 30. That's not different from February 29.

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

2 participants