Skip to content

Fix bug parsing "12AM" as noon instead of midnight #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 5, 2025

Conversation

ellyellyelly
Copy link
Contributor

Expected Behavior: time input "12AM" is parsed internally as "12:00", pm: false and then finalized as "00:00"

Actual Behavior: time input "12AM" is parsed internally as "12:00", pm: false and then finalized as "12:00"

Notes: I appended the check for whether the input is a "12AM" case to the condition handling 12-hour afternoon time not being converted to 24-hour time internally as it requires the same solution

@Stypox Stypox merged commit 66fd44b into Stypox:master Apr 5, 2025
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.

2 participants