frontend/utils/getPreferredTimeFormat.ts
JustTemmie eb49450756
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
feat: support 12 and 24 hour formats
2025-07-12 20:43:25 +02:00

11 lines
No EOL
209 B
TypeScript

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"
}