Bug 446867

Summary: Date and Time runner displays other timezones first when asked for UTC or GMT.
Product: [Plasma] krunner Reporter: Kishore Gopalakrishnan <kishore96>
Component: generalAssignee: Alexander Lohnau <alexander.lohnau>
Status: CONFIRMED ---    
Severity: normal CC: nate, plasma-bugs-null
Priority: NOR Keywords: usability
Version First Reported In: 5.23.4   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of the results for the query 'time utc'

Description Kishore Gopalakrishnan 2021-12-12 07:26:34 UTC
Created attachment 144473 [details]
Screenshot of the results for the query 'time utc'

SUMMARY
With the query 'time utc', krunner (Date and Time runner) tries to show all possible offsets from UTC. The list of possible offsets is so long that the actual UTC time (which is probably what the user wanted) is not shown.

Same issue also occurs with 'time gmt'.

STEPS TO REPRODUCE
1. Make sure the 'Date and Time' runner is enabled in krunner
2. Invoke krunner
3. Type 'time utc' (without quotes)

OBSERVED RESULTS
One is shown results for many timezones with offset from UTC (UTC-14:00 and so on). The result for UTC+00:00 is not shown (see attached screenshot)

EXPECTED RESULT
UTC+00:00 should be the first timezone shown for this query, since that is what the user is most likely interested in.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Kernel Version: 5.15.7-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
Memory: 21.5 GiB of RAM
Graphics Processor: AMD Radeon Vega 8 Graphics
Comment 1 Nate Graham 2021-12-14 18:35:08 UTC
Can confirm.

Works for me in the KRunner-powered search in Kickoff, interestingly enough.