Comments (9)
What do you use as the starting date?
from rrule.
Setting inc
to true
might help.
If not, can you show the code you use to get the dates? (Please set the dtstart
option to your current time so that it can be reliably reproduced.)
from rrule.
Oh that was fast.
The startdate is 01.02.2013.
I use this file to test:
http://pastebin.com/ERmqn6Xv
from rrule.
The problem is that you're using a DAILY frequency. Together with the interval, your rule is every third day if it falls on a Monday. If you want every third Monday, the frequency should be WEEKLY. If you want every third Monday of the month, you should go for a MONTHLY frequency, interval of 1, and +3MO.
from rrule.
Ahh I see. The byday rule is just for freq above daily?
from rrule.
In practice, yeah.. there isn't much it's good for with BYDAY.. I mean, it would come in handy if you wanted a pattern like Mon, Wed, Fri, Tue, Thu... And you can still do things like FREQ=DAILY;BYDAY=MO – but you can also do that with WEEKLY.
from rrule.
Yea i see.
from rrule.
Ok I tested it WEEKLY with the sdate on 01.02.2013 and that rule:
FREQ=WEEKLY;BYDAY=MO;INTERVAL=3;UNTIL=20131101T000000Z;WKST=MO
And it starts not on the first Monday it starts on the third.
If I change the sdate to 04.02.2013 (the first Monday) than it works.
Looks like the script asumes that the first week of the Month allready has a booked Monday.
But this Monday is not in this Month and so not booked.
Mhh u know what i mean?
from rrule.
Since the frequency is WEEKLY, it starts in the week of the start date. Since Feb 1st is the Thursday of the previous week, it won't include that Monday. Since you want some special effect with the first date, you'll want to set the start date to the date of your first repetition.
from rrule.
Related Issues (20)
- Feature: exception rule HOT 2
- rrule.min.js is offline HOT 1
- UNTIL is miscalculated when DTSTART has timezone (TZID)
- Missing dates for weekly with count HOT 1
- byweekday undefined has different behavior than empty array
- Broken the link HOT 2
- Combining MINUTELY with BYHOUR and BYDAY misses out days when used with just one BYHOUR value
- Possible solution for "Invalid UNTIL value"
- [bug] Decimal interval creates an infinite loop HOT 2
- Using RRule.after and RRule.between with Hermes JS Engine HOT 1
- RRrule timezone issue
- Exdates returning UTC date without TZID offset HOT 2
- rrule.after method doesn't work if there is a TZID in the dtstart HOT 1
- returned date incorrect caused by TZ rollover HOT 5
- Occurences are wrong when DTStart includes timezone
- rrulestr constructor with options doesn't flow through DTStart or TZID
- Is this still being actively maintained?
- working with Evolution Mail and web calendar using RRULE fail because of X-EVOLUTION-ENDDATE in rrule
- Timezone issue
- How can we define a repeating rule that occurs Yearly and spans for a month - ex) Black History Month HOT 1
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 rrule.