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

            Bug ID: 463345
           Summary: Bing POTD is usually out of sync by one day
    Classification: Plasma
           Product: kdeplasma-addons
           Version: 5.26.4
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: Picture of the Day
          Assignee: plasma-b...@kde.org
          Reporter: gerbils...@gerbilsoft.com
                CC: i...@guoyunhe.me, qydwhotm...@gmail.com
  Target Milestone: ---

SUMMARY
The POTD wallpaper plugin checks for new wallpaper at 12:00 AM localtime.
Bing's Picture of the Day updates at a fixed time each day (possibly 12:00 AM
PST, would need to confirm this). If the system is set to a timezone with a
higher offset than PST, then Plasma ends up checking for new wallpaper some
hours before Bing's Picture of the Day has been updated, resulting in the
wallpaper being a day behind.

STEPS TO REPRODUCE
1. Set wallpaper to Bing Picture of the Day.
2. Wait until the next day.

OBSERVED RESULT
If in e.g. US/Eastern, the wallpaper will be showing the previous Bing Picture
of the Day.

EXPECTED RESULT
The wallpaper should be showing the current Bing Picture of the Day.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo; Kernel 6.0.9
(available in About System)
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.101
Qt Version: 5.15.7

ADDITIONAL INFORMATION
A proper fix would be extending the POTD provider class to allow it to return a
timestamp indicating when the wallpaper should be updated. For Bing POTD, it
should be 12 AM Pacific Time (or perhaps 5-10 minutes later). Note that this
will need to be adjusted for DST, so QTimeZone for "US/Pacific" should be used
to adjust for DST.

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

Reply via email to