sched: interface.html, Monday is the first day of the week

pull/3227/head
Rob Pilling 2024-03-02 16:12:06 +00:00
parent 97d648d4af
commit d28d696dea
1 changed files with 3 additions and 1 deletions

View File

@ -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);
});