Skip to content

Comments

fix: correct AM/PM in natural time format at noon/midnight boundary#26

Merged
Orinks merged 1 commit intodevfrom
fix/natural-time-ampm-bug
Feb 14, 2026
Merged

fix: correct AM/PM in natural time format at noon/midnight boundary#26
Orinks merged 1 commit intodevfrom
fix/natural-time-ampm-bug

Conversation

@Orinks
Copy link
Owner

@Orinks Orinks commented Feb 14, 2026

Fixes #25

When using the 'quarter to' natural time format, the AM/PM indicator now correctly flips at noon and midnight boundaries:

  • 11:45 AM → 'quarter to 12 PM' (was incorrectly 'quarter to 12 AM')
  • 11:45 PM → 'quarter to 12 AM' (was incorrectly 'quarter to 12 PM')

Added 3 test cases covering the boundary and non-boundary scenarios.

When using 'quarter to' in natural time style, the AM/PM indicator
now correctly flips when crossing noon (11:45 AM -> 'quarter to 12 PM')
and midnight (11:45 PM -> 'quarter to 12 AM').

Fixes #25
@Orinks Orinks merged commit 39de703 into dev Feb 14, 2026
5 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.

1 participant