https://bugs.kde.org/show_bug.cgi?id=508132

            Bug ID: 508132
           Summary: Wrong calculation of time used
    Classification: Applications
           Product: ktimetracker
      Version First 6.0.0
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: grave
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 183966
  --> https://bugs.kde.org/attachment.cgi?id=183966&action=edit
Example KTimeTracker file

SUMMARY
KTimeTracker seems to calculate the time used incorrectly. Please see the
attached example file. This has 15 entries. According to KTimeTracker, the
total time, total session etc. is 18:23. However, if I export the history and
manually calculate the time, it sums to 18:04.

And, curiously, if I start the clock and immediately stop the clock, then
delete the new (0-minute) entry, the total is reduced to 17:57 (still wrong!).

So the calculation of the time used for tasks seems completely wrong.

As calculating the total time used for a task is the core feature of this
application, I have set the severity to grave.


STEPS TO REPRODUCE
1. Open the attached .ics file.
2. Observe that the total time is shown as 18:23.
3. Export the event log. To ensure that all events are included, set the start
time 2020-01-01 and the end time to the current date.
4. Open the event log in LibreOffice calc. Create a column calculating the
difference between End and Start, and sum this column. Note that the sum is
18:04. (I get the same result using R.)
5. In KTimeTracker, double-click twice the ‘Test’ task to start and stop a new
event.
6. Right-click on the task, Edit Time, Edit History and delete the new
(zero-minute) event. Note that total time has been reduced to 17:57.


OBSERVED RESULT
In step 2 and step 6, the total time 18:23 and 17:57.

EXPECTED RESULT
In step 2 and step 6, the total time should be identical. And I think it should
be 18:04 (unless there’s a bug in the export feature).


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250804
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.8-1-default (64-bit)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to