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

Nate Graham <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-workspace/-/commi
                   |                            |t/d4f16afff4dae14d696f00ffe
                   |                            |056a6270f7eb7c8
         Resolution|---                         |FIXED
            Version|                            |6.6.4
  Fixed/Implemented|                            |
                 In|                            |

--- Comment #2 from Nate Graham <[email protected]> ---
Git commit d4f16afff4dae14d696f00ffe056a6270f7eb7c8 by Nate Graham, on behalf
of David Edmundson.
Committed on 27/03/2026 at 16:19.
Pushed by ngraham into branch 'master'.

applets/digital-clock: Fix clipboard menu

QDateTime objects cannot be easily converted to/from JS date objects.

JS date objects are always relative to the system clock.
In the port to libclock things the behaviour of the passed around
datetime changed in order to make the JS handling considerably easier
and less hacky, unfortunately it broke the menu which made alternative
assumptions.

We don't need to pass a date object about, we just need to pass the
timezone and can then just query the current time.

As a bonus this also allows us to have the value for seconds available
regardless of the Plasmoid setting.
FIXED-IN: 6.6.4

M  +1    -1    applets/digital-clock/DigitalClock.qml
M  +19   -18   applets/digital-clock/plugin/clipboardmenu.cpp
M  +6    -5    applets/digital-clock/plugin/clipboardmenu.h

https://invent.kde.org/plasma/plasma-workspace/-/commit/d4f16afff4dae14d696f00ffe056a6270f7eb7c8

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

Reply via email to