Summary: | Reminders for imported birthdays from KAdressbook don't work as expected | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | Tobias <flabbergasted> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Proposed patch to correctly set the reminder time for imported birthdays |
Description
Tobias
2007-03-19 20:04:02 UTC
Has anybody reproduced this? This has been also reported in Debian BTS at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=420826 I can confirm that the workaround mentioned in the Debian bug report works for me, too. Setting it to 3*60 days in advance gives me the warning 3 days in advance. So this should be an easy fix. Now KDE 3.5.7 is out and it was said that there were especially PIM bugfixes but this still doesn't seem to be fixed. Why is that? It seems like a really easy fix... Tobias > Why is that? No one seems to find it important enough. > It seems like a really easy fix... You know the code? Then send us a patch, please, and we'll apply it. Created attachment 21153 [details]
Proposed patch to correctly set the reminder time for imported birthdays
Sorry, forgot to write the comment when uploading the patch. This is the first time I created a patch so I hope I did everything right. I haven't tested it because I'm not sure how to compile kdepim from svn on my system. Maybe someone could point me to more information? I'd be happy to be of more help. Tobias SVN commit 689074 by winterz: Fix Reminders for imported birthdays from KAdressbook don't work as expected Thanks for the patch Tobias. BUGS: 143230 M +4 -4 resourcekabc.cpp --- branches/KDE/3.5/kdepim/kresources/birthdays/resourcekabc.cpp #689073:689074 @@ -200,8 +200,8 @@ Alarm* vAlarm = ev->newAlarm(); vAlarm->setText(summary); vAlarm->setTime(birthdate); - // 24 hours before - vAlarm->setStartOffset( -1440 * mAlarmDays ); + // 24 hours before. duration is in seconds. + vAlarm->setStartOffset( -86400 * mAlarmDays ); vAlarm->setEnabled(true); } @@ -305,8 +305,8 @@ Alarm* vAlarm = ev->newAlarm(); vAlarm->setText(summary); vAlarm->setTime(anniversary); - // 24 hours before - vAlarm->setStartOffset( -1440 * mAlarmDays ); + // 24 hours before. duration is in seconds. + vAlarm->setStartOffset( -86400 * mAlarmDays ); vAlarm->setEnabled(true); } |