Skip to content

fix(datepicker): correctly classify noon as PM in si-timepicker merid…#1887

Open
spliffone wants to merge 1 commit intomainfrom
fix/timepicker-meridian-selection
Open

fix(datepicker): correctly classify noon as PM in si-timepicker merid…#1887
spliffone wants to merge 1 commit intomainfrom
fix/timepicker-meridian-selection

Conversation

@spliffone
Copy link
Copy Markdown
Member

@spliffone spliffone commented Apr 16, 2026

@spliffone spliffone added this to the 49.x milestone Apr 16, 2026
@spliffone spliffone requested review from a team as code owners April 16, 2026 08:50
@spliffone spliffone added the bug Something isn't working label Apr 16, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request corrects the meridian logic in the timepicker component to ensure that 12:00 PM (noon) is correctly identified as PM instead of AM. It also includes a new unit test to verify this behavior. Feedback was provided to optimize performance by only emitting the meridian change event when the value actually changes, which helps avoid redundant change detection cycles.

Comment thread projects/element-ng/datepicker/si-timepicker.component.ts Outdated
@spliffone spliffone force-pushed the fix/timepicker-meridian-selection branch from fa1e2c9 to 3c627b0 Compare April 16, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

si-timepicker should show PM meridian for noon when Date object is 12:xx

1 participant