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:
@@ -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(
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -310,7 +310,7 @@ Singleton {
|
||||
if (use24Hour) {
|
||||
return date.toLocaleTimeString(Qt.locale(), "HH:mm")
|
||||
} else {
|
||||
return date.toLocaleTimeString(Qt.locale(), "h:mm AP")
|
||||
return date.toLocaleTimeString(Qt.locale(), "hh:mm AP")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user