Comments (3)
This appears to still be the case, and it's in direct conflict with the standard which states:
"""
Recurrence rules may generate recurrence instances with an invalid
date (e.g., February 30) or nonexistent local time (e.g., 1:30 AM
on a day where the local time is moved forward by an hour at 1:00
AM). Such recurrence instances MUST be ignored and MUST NOT be
counted as part of the recurrence set.
"""
https://tools.ietf.org/html/rfc5545
this is what python's dateutil does:
>>> from dateutil.rrule import rrule, MONTHLY
>>> from datetime import datetime
>>> r = rrule(MONTHLY, dtstart=datetime(2016, 1, 30))
>>> r.between(datetime(2017, 1, 1), datetime(2017, 4, 1))
[datetime.datetime(2017, 1, 30, 0, 0), datetime.datetime(2017, 3, 30, 0, 0)]
whereas ical4j displays the behavior described in the previous comment.
from ical4j.
This was a bug but I believe it should now be fixed. The results from the latest release as follows:
20140730T000000/PT0S
20140830T000000/PT0S
20140930T000000/PT0S
20141030T000000/PT0S
20141130T000000/PT0S
20141230T000000/PT0S
20150130T000000/PT0S
20150330T000000/PT0S
20150430T000000/PT0S
20150530T000000/PT0S
20150630T000000/PT0S
You can see with the latest implementation that Feb dates are skipped because there is no Feb 30th.
from ical4j.
Awesome, thank you for checking back on this!
from ical4j.
Related Issues (20)
- Request to update America/Mexico_City Timezone info HOT 2
- 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
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.