Bug 135002

Summary: session times do not show up correctly in calendar
Product: [Applications] ktimetracker Reporter: Björn Gohla <bgohla>
Component: generalAssignee: Thorsten Staerk <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot showing karm and korganizer
this patch seems to bring the solution
after doing some infrastructure work, I think, this is the solution
works for me

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