style: move time format to language
This commit is contained in:
parent
395dd6cf9b
commit
b7eb404d0f
4 changed files with 22 additions and 35 deletions
|
@ -1,9 +1,9 @@
|
|||
export default (): "12" | "24" => {
|
||||
const format = settingsLoad().timeFormat?.format ?? "auto"
|
||||
const format = settingsLoad().timeFormat ?? "Auto"
|
||||
|
||||
if (format == "12") {
|
||||
if (format == "4:18 PM") {
|
||||
return "12"
|
||||
} else if (format == "24") {
|
||||
} else if (format == "16:18") {
|
||||
return "24"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue