We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The type of the field positions should be number[] and not number (see docs)
positions
number[]
number
If I use number I get the wrong rule string
const model = new RecurrenceModel({ count: 2, days: ['SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA'], frequency: 'MONTHLY', interval: 1, positions: 4 // <- wrong }); console.log(model.rule); // FREQ=MONTHLY;BYDAY=SU,MO,TU,WE,TH,FR,SA;COUNT=2
But if I use number[] I get the correct rule string
const model = new RecurrenceModel({ count: 2, days: ['SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA'], frequency: 'MONTHLY', interval: 1, positions: [4] // <- correct }); console.log(model.rule); // FREQ=MONTHLY;BYDAY=SU,MO,TU,WE,TH,FR,SA;COUNT=2;BYSETPOS=4
The text was updated successfully, but these errors were encountered:
Good catch, fixed now for next patch!
Sorry, something went wrong.
matsbryntse
No branches or pull requests
The type of the field
positions
should benumber[]
and notnumber
(see docs)If I use
number
I get the wrong rule stringBut if I use
number[]
I get the correct rule stringThe text was updated successfully, but these errors were encountered: