feat: support 12 and 24 hour formats
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful

This commit is contained in:
Twig 2025-07-12 20:43:25 +02:00
parent de6c9bb7eb
commit eb49450756
No known key found for this signature in database
3 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1,11 @@
export default (): "12" | "24" => {
const format = settingLoad("timeFormat").timeFormat ?? "auto"
if (format == "12-hour") {
return "12"
} else if (format == "24-hour") {
return "24"
}
return "24"
}