Navigate to the following directory:

cd /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components

Then edit Clock.qml:

sudo nano Clock.qml

Find the following line: text: Qt.formatTime([“Local”][“DateTime”])

And edit this line to the following:

text: Qt.formatTime(["Local"]["DateTime"], "hh:mm:ss")

Remove :ss to just display hour and minute. Finally reboot.

Sourced from - Change time format on lock screen to 24h

  • linux/kde/lockscreen-time-format.txt
  • Last modified: 2024/01/28 14:04
  • by Zyzonix