How to show seconds on SDDM and Lock Screen in KDE Plasma 6?

It worked in KDE Plasma 5 by editing the Clock.qml file in

/usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/Clock.qml
/usr/share/sddm/themes/breeze/components/Clock.qml

By adding

Qt.formatTime(timeSource.data["Local"]["DateTime"], "hh:mm:ss AP")

Now the Clock.qml file has moved to

/usr/lib/qt/qml/SddmComponents/Clock.qml
/usr/lib/qt6/qml/SddmComponents/Clock.qml
/usr/lib/qt6/qml/org/kde/breeze/components/Clock.qml

And the edit doesn’t work anymore.