fix(home): hour dropdown reads 1-12 instead of 12,1-11
CI / test (push) Has been cancelled

The 12-first ordering came from how minutes-to-12-hour conversion
treats midnight (h24 % 12 === 0 → display as 12), but that's a value
mapping, not a list ordering. Listing 1-12 is the obvious natural
order users expect from a clock dropdown.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-08 12:28:51 -04:00
parent 91b148c271
commit b0773e686e
10 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -406,7 +406,7 @@ function onAddPhoto(deviceId: number) {
// ── Settings sheet ────────────────────────────────────────────────────────────
const HOUR_OPTIONS = [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
const HOUR_OPTIONS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
const MINUTE_OPTIONS = [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55]
type FrequencyMode = 'times' | 'interval'