[Kde-pim] Bug in recurrence EXRULE handling?

Reinhold Kainhofer reinhold at kainhofer.com
Mon May 14 22:30:47 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Montag, 14. Mai 2007 schrieb David Jarvie:
> >From a quick test, it looks as if an EXRULE which specifies dates only
>
> combined with an RRULE which specifies date/time values doesn't exclude the
> whole day for each day in the EXRULE. 

Because it shouldn't. An EXDATE with VALUE=DATE does indeed exclude the whole 
day, but an exrule by definition has the same VALUE type as DTSTART and thus 
takes the hour and minute from DTSTART if required.

> For example, 
>
> DTSTART:20070505T120000Z
> RRULE:FREQ=MINUTELY;INTERVAL=1

This means: recur every minute.

> EXRULE:FREQ=DAILY;BYDAY=MO,TU

This means: exclude all events every monday and tuesday at 12:00 UTC, as the 
time is taken from DTSTART. Contrary to what you might think, this EXRULE 
still defines date/time values, not date-only values! 

Just like 
RRULE: FREQ=DAILY:BYDAY=MO,TU 
doesn't mean the whole day, but only at 12:00 UTC. RRULE and EXRULE are of the 
same type RECUR and thus can't behave differently.

Cheers,
Reinhold

> This appears (extrapolating from my test results) to generate occurrences
> on Mondays and Tuesdays for all minutes except 12:00:00, plus all minutes
> on all other days of the week. I think that it should probably exclude
> Mondays and Tuesdays altogether.
>
> If others can confirm my understanding of what ought to happen, I'll look
> into fixing it. I notice in particular that although
> RecurrenceRule::setFloats() is defined, mFloats which records its setting
> is never referenced.



- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: reinhold at kainhofer.com, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGSNUKTqjEwhXvPN0RAsVnAJ0RGAmsWP1XkoLb2mCv29N0ozTe3QCeMR9A
eXDvFDU52qdefA284gCYpIA=
=k1hK
-----END PGP SIGNATURE-----
_______________________________________________
kde-pim mailing list
kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/



More information about the kde-pim mailing list