Bug 470973

Summary: Confusing time value: Notification of yesterday is displayed using time if less than 24 hours have passed but next day rose
Product: [Plasma] plasmashell Reporter: Daniel <daniel-other+kdebug>
Component: NotificationsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: kde, nate
Priority: NOR    
Version First Reported In: 5.27.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Other   
Latest Commit: Version Fixed/Implemented In: 6.4.0
Sentry Crash Report:
Attachments: Time is shown, even though the notification is form yesterday

Description Daniel 2023-06-13 12:21:23 UTC
Created attachment 159637 [details]
Time is shown, even though the notification is form yesterday

SUMMARY
***
A notification which was created yesterday, shows the time if less than 24 hours have passed (so, if the notification was created yesterday at 16:00 and now it is 14:00, the notification is displayed with "16:00", even though it should be displayed with "yesterday").

***


STEPS TO REPRODUCE
1.  Create a notification
2.  Wait <24 hours, but enough so that the next day begins


OBSERVED RESULT
The time is shown  in the notification

EXPECTED RESULT
The term "yesterday" should be displayed instead. It might be sensible to have some "transition phase" in the night / morning (like 02:00 or 03:00) where the time continues to be displayed, since most users havn't slept yet.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8565U CPU @ 1.80GHz
Memory: 15,4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Manufacturer: LENOVO
Product Name: 20QGS00A00
System Version: ThinkPad X1 Yoga 4th
Comment 1 Nate Graham 2025-04-05 21:05:57 UTC
I gave this a try with current git master, simulating the issue by setting my computer's clock forward 22 hours. The time immediately changes to "Yesterday", so it looks like this is fixed now!