Log times: forgive typos like 08;45 #556

Closed
opened 2026-10-17 17:52:32 +00:00 by kayg · 1 comment
Owner

Bug: 08;45 - 11:30 Getting ready (semicolon typo) was plain text, the 11:30 too, while 08:15 - 08:45 was grey.

Fix (lenient logs, r5): hour/minute separator : . ; h, 1-2 digit hours, - – — to between times (spaces optional), optional am/pm. Bare 0845 stays text. One reader: the grey in the editor now uses the same parser as + Log (logTimeSpan), and the Rust twin gets the same rules, both on contracts/log-entries.json. Text on disk is never rewritten.

Open question for kayg: should we normalise the stored text (08;45 to 08:45)? Left as is.

Bug: `08;45 - 11:30 Getting ready` (semicolon typo) was plain text, the 11:30 too, while `08:15 - 08:45` was grey. Fix (lenient logs, r5): hour/minute separator `: . ; h`, 1-2 digit hours, `- – — to` between times (spaces optional), optional am/pm. Bare `0845` stays text. One reader: the grey in the editor now uses the same parser as + Log (`logTimeSpan`), and the Rust twin gets the same rules, both on `contracts/log-entries.json`. Text on disk is never rewritten. Open question for kayg: should we normalise the stored text (08;45 to 08:45)? Left as is.
Author
Owner

Closing during the 26 Oct handover cleanup: Forgiving log-time typos landed in dev (PR #557).

Closing during the 26 Oct handover cleanup: Forgiving log-time typos landed in dev (PR #557).
kayg closed this issue 2026-10-26 08:46:41 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#556
No description provided.