Comments (4)
This is potentially fixed now as a result of PR #48.
from ical4j.
Actually, it is not fixed. After reading the RFC I am not sure what is the expected behaviour here. The problem is that there is one BYSETPOS and two others: BYMONTH and BYMONTHDAY. The author wanted BYSETPOS to apply to the BYMONTHDAY set, but in reality it gets applies to the overall list of candidate dates (selecting the last month in the list only).
RFC has it this way:
If multiple BYxxx rule parts are specified, then after evaluating the
specified FREQ and INTERVAL rule parts, the BYxxx rule parts are
applied to the current set of evaluated occurrences in the following
order: BYMONTH, BYWEEKNO, BYYEARDAY, BYMONTHDAY, BYDAY, BYHOUR,
BYMINUTE, BYSECOND and BYSETPOS; then COUNT and UNTIL are evaluated.
I think the issue here is that BYMONTH rule evaluator breaks out of the FREQ=MONTHLY
bound.
from ical4j.
Ok I think this is now working as expected with the latest refactor of recurrence implementation.
For example, using the above rule for period 20150101/20170101
I get:
20150228
20150331
20150930
20151031
20160229
20160331
20160930
20161031
from ical4j.
Thank you. We will run a set of tests on our side.
from ical4j.
Related Issues (20)
- With the latest beta version, examples are out of date HOT 4
- Can't create properly formatted CONFERENCE property HOT 4
- Time of Event not correct with Events from Wordpress Events Manager HOT 5
- Wrong operator precedence in TemporalAmountAdapter.java v3.2.13
- nebula plugins should probably be removed - latest versions are no-op HOT 1
- calculateRecurrenceSet produces invalid data after DST shift HOT 7
- Unexpected Timezone offset with ical4j 4.0.0-rc1 HOT 2
- TZID prefix added to UTC datetimes HOT 2
- Update android minify receipe in https://www.ical4j.org/android/ for R8-Minify HOT 1
- Outlook ics "nested too deep" HOT 3
- Times of events are off by one hour HOT 1
- Validation does not spot quite simple contraints
- Cannot parse EMAIL="mailto:[email protected]" HOT 2
- Exchange is unable to actively parse ICS file, but Outlook 365 can parse it normally.
- extractor.ICalendarExtractor: Unable to parse icalendar with slashed
- Errors need to be flagged as such in log HOT 1
- TZ aliases not working HOT 2
- `DateListPropertyRule` not fixing time zone name HOT 1
- `calculateRecurrenceSet` return value is not accurate
- ClassCastException: VAlarm cannot be cast to Observance when VTIMEZONE contains a VALARM
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ical4j.