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

            Bug ID: 522037
           Summary: Negative clock offsets display incorrectly for
                    fractional hours
    Classification: Plasma
           Product: plasmashell
      Version First 6.7.0
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Digital Clock widget
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: 1.0

Created attachment 193574
  --> https://bugs.kde.org/attachment.cgi?id=193574&action=edit
A screenshot showing the wrong time offset formatting

DESCRIPTION

Negative clock offsets display incorrectly for time zones with fractional hour
offsets. For example. I'm 1:30h ahead of India Standard Time (IST). On hover,
the widget displays this as "2:-30" earlier, instead of "1:30 hours earlier".

STEPS TO REPRODUCE
1. Add a timezone with a negative offset containing fractional hours. India
(IST, UTC+5:30) or Nepal (NPT, UTC+5:45) are good candidates.
2. Hover over the widget or click on it.
3. The time is formatted wrongly.

OBSERVED RESULT

"2:-30 earlier"

EXPECTED RESULT

"1:30 hours earlier"

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window):
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

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

Reply via email to