From d28d696deaa7eab31678d7e398fdc3a0375bb4de Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Sat, 2 Mar 2024 16:12:06 +0000 Subject: [PATCH] sched: interface.html, Monday is the first day of the week --- apps/sched/interface.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/sched/interface.html b/apps/sched/interface.html index 75c8ce67f..61c554712 100644 --- a/apps/sched/interface.html +++ b/apps/sched/interface.html @@ -175,9 +175,11 @@ function renderAlarm(alarm, exists) { option.value = day; option.text = day; option.selected = alarm.dow & (1 << i); - selectDays.appendChild(option); + if(day !== "Sun") + selectDays.appendChild(option); return option; }); + selectDays.appendChild(options.find(o => o.text === "Sun")); selectDays.onchange = (e => { alarm.dow = options.reduce((bits, opt, i) => bits | (opt.selected ? 1 << i : 0), 0); });