Log times: forgive typos like 08;45 #557

Closed
kayg wants to merge 0 commits from issue/log-times-lenient into dev
Owner

Closes #556

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.

Closes #556 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.
Log times: forgive typos like 08;45 (#556)
Some checks failed
CI / rust (pull_request) Failing after 8s
CI / server (pull_request) Successful in 25s
CI / web (pull_request) Failing after 28s
4b4d38256b
Accept : . ; h between hour and minute, 1-2 digit hours, - – — or 'to'
between times, optional am/pm. The editor's grey now uses the same reader
as + Log; the Rust twin and shared vectors agree. Text is never rewritten.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Owner

Landed in train y, #565.

Landed in train y, #565.
kayg closed this pull request 2026-10-17 20:10:23 +00:00
Some checks failed
CI / rust (pull_request) Failing after 8s
CI / server (pull_request) Successful in 25s
CI / web (pull_request) Failing after 28s

Pull request closed

Sign in to join this conversation.
No reviewers
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!557
No description provided.