Typing times between 12:00AM-12:59AM save as PM #7977
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
I'm submitting a ...
Current behavior
When using a p-calendar with both a date & time selector with text entry enabled & 12hr format used, using the text input to select a time between 12:00AM - 12:59AM is switched to PM on blur of the field.
Expected behavior
The time's morning/afternoon indicator (AM/PM) should be maintained.
One of my colleagues made a fix in this PR: RLijewski@d76d575
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
So that we can default a date to have a time of midnight that day if a time is not identified by the user
Please tell us about your environment:
Windows, IntelliJ, HTTP, p-calendar is in a drawer and within a form
Angular version: 6.0
PrimeNG version: 6.1
Browser: [ Chrome 75 ]
Language: [ TypeScript 3.2.4 ]
Node (for AoT issues):
node --version
=The text was updated successfully, but these errors were encountered: