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

            Bug ID: 497960
           Summary: can't set alarms by time when local timezone is UTC
    Classification: Applications
           Product: kalarm
           Version: 3.10.0
          Platform: Arch Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: djar...@kde.org
          Reporter: madewokh...@gmail.com
  Target Milestone: ---

SUMMARY
With the system timezone set to UTC, when entering an alarm at a specific
date/time, KAlarm always reports that the time has already elapsed.

STEPS TO REPRODUCE
1. Set localtime to UTC.
2. Select New>>New Display Alarm... in KAlarm
3. Ensure "At date/time" is selected, and move it forward an hour to make sure
it's in the future.

OBSERVED RESULT
An error message is shown: "Alarm time has already expired"

EXPECTED RESULT
Alarm is successfully created.

SOFTWARE/OS VERSIONS
KAlarm: 3.10.0 (KDE Gear 24.12.0)
KDE Frameworks: 6.9.0
Qt: Using 6.8.1 and built against 6.8.1
Arch Linux (Xcb)
Build ABI: x86_64-little_endian-lp64
Kernel: linux 6.12.6-arch1-1

ADDITIONAL INFORMATION
I tracked this down to the offsetAtLocalTime function in kadatetime.cpp. The
switch (qTimeSpec(zoneDateTime)) does not account for Qt::UTC or
Qt::OffsetFromUTC. In this case, the timespec is QT::UTC.

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

Reply via email to