frontend/utils/getPreferredTimeFormat.ts
Temmie 2da62b2e94
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful
chore: review changes
2025-08-15 13:05:36 +02:00

11 lines
No EOL
196 B
TypeScript

export default (): "12" | "24" => {
const format = settingsLoad().timeFormat || "Auto"
if (format == "4:18 PM") {
return "12"
} else if (format == "16:18") {
return "24"
}
return "24"
}