[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: Re: [Kde-pim] KPilot?
From: Reinhold Kainhofer <reinhold () kainhofer ! com>
Date: 2002-07-24 20:36:57
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 24 July 2002 21:39, Reinhold Kainhofer wrote:
> syncing monthly recurrences. Now there's only yearly recurrences
> left (I fogot to set on which the event should occur ...), which
> will be fixed real soon.
Which means, the fix is in cvs by now. However, I have a problem
with yearly recurences (by day) in KCal::Recurrence. If you need to
set the recurrence to the n-th of a certain month (not the n-th
weekday in month x), do I really have to use rYearlyDay? AFAIU
rYearlyPos lets you set yearly recurrences on e.g. the first friday
in October, but not on October 3rd. So you have to calculate the
day of year using QDate::dayOfYear and set it via addYearlyNum.
I tried both
recur->setYearly(Recurrence_t::rYearlyDay,freq,endDate);
recur->addYearlyNum( recdate.dayOfYear() );
and
recur->setYearly(Recurrence_t::rYearlyPos,freq,endDate);
recur->addYearlyNum( evt.month() );
dayArray.setBit((evt.day()-1) % 7);
recur->addYearlyMonthPos( ( (evt.day()-1) / 7) + 1, dayArray );
While the first has a yearly recurrence, but really on the n-th day
of the year (meaning in leap years like 2004 the event is shifted
one day), the second does not even show a recurrence. It is maked
as a recurring event in korganizer, but in the recurrence tab in
korganizer, none of the radiobuttons is marked..
What am I doing wrong? And how can I set an event to recur on July
24?
Thanks
Reinhold
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9Pw/pTqjEwhXvPN0RAqNEAKCuewRUEHV/OI8DdBpUQhuvyDj3wgCgtg3i
SOxv1weElDnvezh+4jPImoQ=
=Xazb
-----END PGP SIGNATURE-----
_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic