fix(scheduler): refuse dates that do not exist, and an unreadable --now in gram plan #114
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!114
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/calendar-dates"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
First fix of the pre-1.4.0 audit (
.notes/AUDIT-1.4.md, B1 and B2).Dates that do not exist.
gram plan --serve "2026-02-30 20:00"planned for March 2: every date reader checked the shape andday <= 31, never the length of the month, soDate.UTCrolled the day over without a word.isCalendarDate()(exported), used byparseLocalIso,localDateTime,addDays,daysBetweenandparseAvailability(a date key like2026-02-30=noneis now refused as a key).--serveand--findrefuse such a date with a clear message.serveAton such a date is dropped like any other invalid one (the run sheet falls back on days) instead of leaving the panel empty.--now. It was passed as is, so--now bananaended in a stack trace raised while drawing the plan.parseNow()checks it with the zone of the plan and says what it expects.Pending changesets extended (
cli-plan-command,scheduler-package), both unreleased. Scheduler API reference updated in en and fr.Gates: lint, typecheck, 2199 tests, conformance (103 + 24).