BYSETPOS not working for weekly recurrence rule

181 views
Skip to first unread message

R. T.

unread,
Feb 18, 2013, 5:13:16 PM2/18/13
to google-...@googlegroups.com
Hi. I'm using google-rfc-2445 (rev. 35 from SVN) together with Joda-Time 2.1.
The following rule works as expected:

"RRULE:FREQ=WEEKLY;BYDAY=MO,FR;BYHOUR=10,18;COUNT=8"

It gives me the following dates:

Mo, 18.02.2013 10:00
Mo, 18.02.2013 18:00
Fr, 22.02.2013 10:00
Fr, 22.02.2013 18:00
Mo, 25.02.2013 10:00
Mo, 25.02.2013 18:00
Fr, 01.03.2013 10:00
Fr, 01.03.2013 18:00


If I'm setting the BYSETPOS parameter it doesn't seem to work:

"RRULE:FREQ=WEEKLY;BYDAY=MO,FR;BYHOUR=10,18;COUNT=8;BYSETPOS=2,3,4"

results in:

Fr, 22.02.2013 10:00
Fr, 22.02.2013 18:00
Fr, 01.03.2013 10:00
Fr, 01.03.2013 18:00
Fr, 08.03.2013 10:00
Fr, 08.03.2013 18:00
Fr, 15.03.2013 10:00
Fr, 15.03.2013 18:00

which is not what I expected.  BYSETPOS=2,3,4 should result in

Monday 18:00, Friday 10:00 and Friday 18:00

At least that's how I understand the BYSETPOS syntax.

Any ideas anyone?

Andy Dennie

unread,
Feb 26, 2014, 3:49:31 PM2/26/14
to google-...@googlegroups.com
I've just run into this same problem.  Did you come up with a fix?
-Andy
Reply all
Reply to author
Forward
0 new messages