Bug 501836

Summary: notifier is confusing timezones
Product: [Applications] Discover Reporter: Harald Sitter <sitter>
Component: NotifierAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, nate, yosukematsumura
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.4.0
Sentry Crash Report:

Description Harald Sitter 2025-03-21 16:04:05 UTC
SUMMARY
https://invent.kde.org/plasma/discover/-/merge_requests/1063#note_1164072

org.kde.plasma.libdiscover.backend.packagekit: using... PackageKit::Transaction(0x1b07b2a0) "/99089_cacaaeda"
org.kde.plasma.libdiscover.backend.packagekit: using... PackageKit::Transaction(0x1b1f4880) "/99090_ebedaebb"
org.kde.plasma.discover.notifier: updateStatusNotifier: hasUpdates true hasSecurityUpdates false
org.kde.plasma.libdiscover.backend.packagekit: using... PackageKit::Transaction(0x1b08f400) "/99091_ccaccbed"
org.kde.plasma.discover.notifier: updateStatusNotifier: hasUpdates true hasSecurityUpdates false
org.kde.plasma.discover.notifier: Not notifying about updates, earliestNextNotificationTime is QDateTime(2025-03-15 16:42:13.498 MDT Qt::LocalTime)
org.kde.plasma.discover.notifier: refreshUnattended: not notifying about updates
org.kde.plasma.libdiscover.backend.packagekit: using... PackageKit::Transaction(0x1b212d80) "/99096_dadaadbb"
org.kde.plasma.discover.notifier: updateStatusNotifier: hasUpdates true hasSecurityUpdates false
org.kde.plasma.discover.notifier: Not notifying about updates, earliestNextNotificationTime is QDateTime(2025-03-15 16:42:13.498 MDT Qt::LocalTime)
org.kde.plasma.discover.notifier: refreshUnattended: not notifying about updates
org.kde.plasma.libdiscover.backend.packagekit: using... PackageKit::Transaction(0x7faf48326880) "/99097_dbeceadd"```


STEPS TO REPRODUCE
-1. have timezone that isn't UTC
0. have updates
1. reset notifier state
2. run notifier
3. get notification
4. run notifier again

OBSERVED RESULT
the reported timestamps will debug as local times but are in fact UTC


EXPECTED RESULT
timezone consistency

SOFTWARE/OS VERSIONS
Operating System: KDE Linux 202502280256
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.4-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 5950X 16-Core Processor
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 7800 XT

ADDITIONAL INFORMATION
Comment 1 Yosuke Matsumura 2025-04-16 19:15:55 UTC
I believe this was addressed in https://invent.kde.org/plasma/discover/-/merge_requests/1077#note_1189930
Comment 2 Nate Graham 2025-04-16 19:26:29 UTC
Indeed.