mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-03 20:32:07 -04:00
Update time format to HH:MM (e.g. 03:00)
This commit is contained in:
@@ -250,7 +250,7 @@ Rectangle {
|
|||||||
if (modelData.allDay) {
|
if (modelData.allDay) {
|
||||||
return "All day"
|
return "All day"
|
||||||
} else {
|
} else {
|
||||||
let timeFormat = SettingsData.use24HourClock ? "H:mm" : "h:mm AP"
|
let timeFormat = SettingsData.use24HourClock ? "HH:mm" : "hh:mm AP"
|
||||||
let startTime = Qt.formatTime(
|
let startTime = Qt.formatTime(
|
||||||
modelData.start, timeFormat)
|
modelData.start, timeFormat)
|
||||||
if (modelData.start.toDateString(
|
if (modelData.start.toDateString(
|
||||||
|
|||||||
@@ -92,9 +92,9 @@ Item {
|
|||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
text: SettingsData.use24HourClock ? Qt.formatTime(
|
text: SettingsData.use24HourClock ? Qt.formatTime(
|
||||||
systemClock.date,
|
systemClock.date,
|
||||||
"H:mm") : Qt.formatTime(
|
"HH:mm") : Qt.formatTime(
|
||||||
systemClock.date,
|
systemClock.date,
|
||||||
"h:mm AP")
|
"hh:mm AP")
|
||||||
font.pixelSize: 120
|
font.pixelSize: 120
|
||||||
font.weight: Font.Light
|
font.weight: Font.Light
|
||||||
color: "white"
|
color: "white"
|
||||||
|
|||||||
@@ -39,8 +39,8 @@ Rectangle {
|
|||||||
StyledText {
|
StyledText {
|
||||||
text: SettingsData.use24HourClock ? Qt.formatTime(
|
text: SettingsData.use24HourClock ? Qt.formatTime(
|
||||||
root.currentDate,
|
root.currentDate,
|
||||||
"H:mm") : Qt.formatTime(
|
"HH:mm") : Qt.formatTime(
|
||||||
root.currentDate, "h:mm AP")
|
root.currentDate, "hh:mm AP")
|
||||||
font.pixelSize: Theme.fontSizeMedium - 1
|
font.pixelSize: Theme.fontSizeMedium - 1
|
||||||
color: Theme.surfaceText
|
color: Theme.surfaceText
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|||||||
@@ -310,7 +310,7 @@ Singleton {
|
|||||||
if (use24Hour) {
|
if (use24Hour) {
|
||||||
return date.toLocaleTimeString(Qt.locale(), "HH:mm")
|
return date.toLocaleTimeString(Qt.locale(), "HH:mm")
|
||||||
} else {
|
} else {
|
||||||
return date.toLocaleTimeString(Qt.locale(), "h:mm AP")
|
return date.toLocaleTimeString(Qt.locale(), "hh:mm AP")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user