Skip to content

Fix flexible clock parsing and translation#16

Merged
edmocosta merged 3 commits into
mainfrom
fix-flex-clock-digits-parsing
May 20, 2026
Merged

Fix flexible clock parsing and translation#16
edmocosta merged 3 commits into
mainfrom
fix-flex-clock-digits-parsing

Conversation

@edmocosta

@edmocosta edmocosta commented May 12, 2026

Copy link
Copy Markdown
Contributor
  • Fixed handling of variable-width clock elements (3, 4, 5) so layouts stay in sync when hours, minutes, or seconds use one or two digits.
  • Failed reads of _2, _2006, and __2 now returns ErrLayoutMismatch errors.
  • Fixed typo in the ErrUnsupportedLayoutElem message (is not support by to is not supported by).

Fixes #15

@edmocosta edmocosta requested a review from alexcams May 12, 2026 11:45
@edmocosta edmocosta marked this pull request as ready for review May 13, 2026 08:57
@edmocosta edmocosta requested a review from a team as a code owner May 13, 2026 08:57
@edmocosta edmocosta removed the request for review from a team May 13, 2026 08:58
@edmocosta edmocosta merged commit b4f3280 into main May 20, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pm does not parse correctly after an element without a leading zero

2 participants