mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-26 22:42:50 -05:00
feat: Use HH:MM format for 24hr clock system only
This commit is contained in:
@@ -310,7 +310,7 @@ Singleton {
|
||||
if (use24Hour) {
|
||||
return date.toLocaleTimeString(Qt.locale(), "HH:mm")
|
||||
} else {
|
||||
return date.toLocaleTimeString(Qt.locale(), "hh:mm AP")
|
||||
return date.toLocaleTimeString(Qt.locale(), "h:mm AP")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -115,7 +115,7 @@ Singleton {
|
||||
}
|
||||
|
||||
function checkTimeBasedCycling() {
|
||||
const currentTime = Qt.formatTime(systemClock.date, "hh:mm")
|
||||
const currentTime = Qt.formatTime(systemClock.date, "h:mm")
|
||||
|
||||
if (currentTime === cachedCyclingTime
|
||||
&& currentTime !== lastTimeCheck) {
|
||||
|
||||
Reference in New Issue
Block a user