1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

Update time format to HH:MM (e.g. 03:00)

This commit is contained in:
Vantesh
2025-08-26 03:03:31 +03:00
parent a185679cd1
commit c04699accf
4 changed files with 6 additions and 6 deletions

View File

@@ -250,7 +250,7 @@ Rectangle {
if (modelData.allDay) {
return "All day"
} else {
let timeFormat = SettingsData.use24HourClock ? "H:mm" : "h:mm AP"
let timeFormat = SettingsData.use24HourClock ? "HH:mm" : "hh:mm AP"
let startTime = Qt.formatTime(
modelData.start, timeFormat)
if (modelData.start.toDateString(

View File

@@ -92,9 +92,9 @@ Item {
anchors.top: parent.top
text: SettingsData.use24HourClock ? Qt.formatTime(
systemClock.date,
"H:mm") : Qt.formatTime(
"HH:mm") : Qt.formatTime(
systemClock.date,
"h:mm AP")
"hh:mm AP")
font.pixelSize: 120
font.weight: Font.Light
color: "white"

View File

@@ -39,8 +39,8 @@ Rectangle {
StyledText {
text: SettingsData.use24HourClock ? Qt.formatTime(
root.currentDate,
"H:mm") : Qt.formatTime(
root.currentDate, "h:mm AP")
"HH:mm") : Qt.formatTime(
root.currentDate, "hh:mm AP")
font.pixelSize: Theme.fontSizeMedium - 1
color: Theme.surfaceText
anchors.verticalCenter: parent.verticalCenter