(d: Date)
| 271 | // --------------------------------------------------------------------------- |
| 272 | |
| 273 | function toIsoDate(d: Date): string { |
| 274 | const y = d.getFullYear() |
| 275 | const m = String(d.getMonth() + 1).padStart(2, '0') |
| 276 | const day = String(d.getDate()).padStart(2, '0') |
| 277 | return `${y}-${m}-${day}` |
| 278 | } |
| 279 | |
| 280 | /** Group using a "today" anchor — caller supplies it so tests are stable and |
| 281 | * the user's timezone is respected. Waiting overrides everything except Done. |
no outgoing calls
no test coverage detected