settings: add 24h/12h time format config

This commit is contained in:
end-4 2025-07-11 17:52:42 +07:00
parent bb5eabb75e
commit 65179b2358

View file

@ -199,4 +199,36 @@ ContentPage {
}
}
}
ContentSection {
title: "Time"
ColumnLayout {
// Format
ContentSubsectionLabel {
text: "Time format"
}
ConfigSelectionArray {
currentValue: Config.options.time.format
configOptionName: "time.format"
onSelected: newValue => {
Config.options.time.format = newValue;
}
options: [
{
displayName: "24h",
value: "hh:mm"
},
{
displayName: "12h am/pm",
value: "h:mm ap"
},
{
displayName: "12h AM/PM",
value: "h:mm AP"
},
]
}
}
}
}