Bug 135002 - session times do not show up correctly in calendar
Summary: session times do not show up correctly in calendar
Status: RESOLVED FIXED
Alias: None
Product: ktimetracker
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Thorsten Staerk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-02 16:04 UTC by Björn Gohla
Modified: 2007-01-05 12:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot showing karm and korganizer (117.33 KB, image/png)
2006-10-02 16:08 UTC, Björn Gohla
Details
this patch seems to bring the solution (6.40 KB, patch)
2006-11-04 17:34 UTC, Thorsten Staerk
Details
after doing some infrastructure work, I think, this is the solution (507 bytes, patch)
2006-11-04 20:21 UTC, Thorsten Staerk
Details
works for me (2.66 KB, patch)
2006-11-04 22:33 UTC, Thorsten Staerk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Gohla 2006-10-02 16:04:14 UTC
Version:           1.6.0 (using KDE 3.5.2, Gentoo)
Compiler:          gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)
OS:                Linux (i686) release 2.6.17-gentoo-r4

i started working on a task on saturday and forgot to stop the session when i left off. as expected, the dialog box asking me whether to reset the timer came up, by which i corrected the problem. however, my calendar still shows the erroneously overlong session. saving the karm calendar and reloading it in korganizer does not help.
Comment 1 Björn Gohla 2006-10-02 16:08:52 UTC
Created attachment 17987 [details]
screenshot showing karm and korganizer

the task at issue here is "ringextensions". the second to last entry in the
calendar list shows several days of activity, while karm itself effectively
only logged about three hours.
Comment 2 Thorsten Staerk 2006-10-02 23:55:45 UTC
I cannot reproduce. The idletimedetector-question resets the timing at me correctly. Which distribution and version are you using ?
Comment 3 Thorsten Staerk 2006-10-15 11:13:33 UTC
Is the time correctly displayed in karm and overlong in your calendar ? Which calendar are you using ? Can you paste your .ics file ?
Comment 4 Thorsten Staerk 2006-10-22 07:55:21 UTC
Björn Gohla writes:
yes, it shows correctly in karm. i use korganizer.
Comment 5 Thorsten Staerk 2006-11-04 13:25:41 UTC
The reason is, because karm stores a negative X-KDE-karm-duration in case a timing is rolled back.
If possible, I would correct the latest VEVENT instead.
Comment 6 Thorsten Staerk 2006-11-04 14:40:24 UTC
For all active tasks, we have to do a setRunning(false) and then a setDtEnd as in http://developer.kde.org/documentation/library/3.5-api/kdepim-apidocs/libkcal/html/classKCal_1_1Event.html#a6
in case the timing shall be rolled back.
Comment 7 Thorsten Staerk 2006-11-04 17:34:48 UTC
Created attachment 18399 [details]
this patch seems to bring the solution

needs to be tested and improved
Comment 8 Thorsten Staerk 2006-11-04 20:21:03 UTC
Created attachment 18403 [details]
after doing some infrastructure work, I think, this is the solution

please test
Comment 9 Thorsten Staerk 2006-11-04 22:33:20 UTC
Created attachment 18408 [details]
works for me
Comment 10 Thorsten Staerk 2006-11-05 17:59:38 UTC
Committed revision 602294.
Comment 11 Thorsten Staerk 2007-01-05 12:57:41 UTC
Fixed with revision 620137