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

Off By One error for BYSETPOS #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lenkawamoto
Copy link

For recurring events with positive BYSETPOS values, events were showing up off by one.

For example:
Labor Day (as created by Zimbra) has the following RRULE:
FREQ=YEARLY;INTERVAL=1;BYMONTH=9;BYDAY=MO;BYSETPOS=1

BYSETPOS is One-Based Indexing while array_slice(...) uses Zero-Based Indexing.

For recurring events with positive BYSETPOS values, events were showing up off by one.

For example:
Labor Day (as created by Zimbra) had the following RRULE:
FREQ=YEARLY;INTERVAL=1;BYMONTH=9;BYDAY=MO;BYSETPOS=1

BYSETPOS is One-Based Indexing while array_slice(...) uses Zero-Based Indexing.
@yllohy
Copy link
Owner

yllohy commented Aug 30, 2018

I am not maintaining this software (and never have), so I am not accepting pull requests. Judging from the sourceforge page, the project has no active maintainer. If you want to revive it, please go ahead.

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

Successfully merging this pull request may close these issues.

2 participants