gui: resetClock's comment cut to one line, the core script budget back under at main

ca8ff054d (times follow the system's clock) ran TestCoreScriptBudget under
its budget at its own base; rebased onto main it was 7 bytes over, because
main had grown meanwhile. No raise: the comment above resetClock is shorter.

Run on mote: TestCoreScriptBudget ok at the rebased head.
This commit is contained in:
yetone
2026-11-11 04:31:37 -08:00
parent 52041e6bc5
commit f549202808
+1 -2
View File
@@ -14601,8 +14601,7 @@ async function setQuotaLeft(on) {
}
}
// resetClock: "14:30" today, "tomorrow 09:00", "Thu 14:30" this week, else
// "Oct 12 08:05"; a bare weekday next week read as this week's (#181).
// resetClock: "14:30", "tomorrow 09:00", "Thu 14:30", else "Oct 12 08:05" (#181).
function resetClock(at, now = new Date()) {
const time = dateFmt({ hour: "2-digit", minute: "2-digit", ...hourClock() }).format(at);
const day = (d) => new Date(d.getFullYear(), d.getMonth(), d.getDate());