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

            Bug ID: 463278
           Summary: "Time from now" alarms are unexpectedly imprecise
    Classification: Applications
           Product: kalarm
           Version: 3.3.6
          Platform: Kubuntu
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: djar...@kde.org
          Reporter: rwest...@bredband.net
  Target Milestone: ---

STEPS TO REPRODUCE
1. Open the dialog box for a new display alarm.
2. For the alarm time, select "Time from now" with a period of 1 minute, but
don't click OK immediately.
3. Wait until the system time is 5 seconds before a whole minute, then click
OK.

OBSERVED RESULT
The display alarm is triggered after 5 seconds, rather than the requested 1
minute.

EXPECTED RESULT
I expected the display alarm to trigger after 1 minute, precise to the second
or so.

SOFTWARE/OS VERSIONS
Linux distribution: Kubuntu 22.04.1 LTS
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

ADDITIONAL COMMENTS
I assume the alarm trigger time is always converted to an absolute time, and
that the truncation to whole minutes takes place because absolute times are
only kept with minute precision.  Fine for absolute trigger times, but not
really adequate for relative times which could reasonably be a small number of
minutes.  For minimal changes, perhaps store the time with second precision and
use that for triggering, but round to nearest minute when shown/edited as an
absolute time in the UI?

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

Reply via email to