Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux:kde:lockscreen-time-format [2024/01/28 13:58] – created Zyzonixlinux:kde:lockscreen-time-format [2024/01/28 14:04] (current) Zyzonix
Line 1: Line 1:
-===== Change time format on lock screen =====+===== Change time on lock screen to 24h format ===== 
 + 
 +Navigate to the following directory: 
 +<code bash>cd /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components</code> 
 + 
 +Then edit ''Clock.qml'': 
 +<code bash>sudo nano Clock.qml</code> 
 + 
 +Find the following line: ''text: Qt.formatTime(timeSource.data["Local"]["DateTime"])'' 
 + 
 +And edit this line to the following: 
 +<code bash> 
 +text: Qt.formatTime(timeSource.data["Local"]["DateTime"], "hh:mm:ss"
 +</code> 
 + 
 +Remove '':ss'' to just display hour and minute. Finally reboot. 
 + 
 +//Sourced from [[https://askubuntu.com/questions/783184/how-to-display-kde-lock-screen-time-in-24-hour-format|askubuntu.com - Change time format on lock screen to 24h]]//
  • linux/kde/lockscreen-time-format.txt
  • Last modified: 2024/01/28 14:04
  • by Zyzonix