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

Weekly and by week number (WEEKLY & BYWEEKNO) doesn't work properly #130

Open
NaWer opened this issue Oct 6, 2017 · 0 comments
Open

Weekly and by week number (WEEKLY & BYWEEKNO) doesn't work properly #130

NaWer opened this issue Oct 6, 2017 · 0 comments

Comments

@NaWer
Copy link

NaWer commented Oct 6, 2017

This rrule has a strange behaviour :

$recurr = new \Recurr\Rule('FREQ=WEEKLY;INTERVAL=1;BYWEEKNO=50,51,52', new \DateTime("2017-10-15 23:59:59"));

$textTransformer = new \Recurr\Transformer\TextTransformer(new \Recurr\Transformer\Translator(config('app.locale')));
var_dump(ucfirst($textTransformer->transform($recurr)));
// print Weekly on Sunday (~ approximate)

var_dump($arrayTransformer->transform($recurr)->toArray()[0]->getStart());
// print 2017-10-15 23:59:59.000000

Excpected :
TextTransformer : Weekly in weeks 50, 51 and 52 on Friday
ArrayTransformer : Fri Dec 15 2017, +7 days, ...

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

No branches or pull requests

2 participants