-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Times between 12:00AM-12:59AM save as PM when defaulted or typed in #7799
Comments
@mertsincan Can this fix be applied for PrimeNg version 7.3.9? If so, when can it be done? We are using Angular 7 for our app. |
@mertsincan We upgraded our app to the latest primeng and have found that the issue is still not resolved. Is the scenario that is breaking here clear? To be clear:
Please let me know if you are not able to reproduce the issue. |
After some further investigation, we see that the problem persists with TYPING in 12:00AM-12:59AM times, but it is fixed for the time selector in the popup. My apologies for not clarifying that in my initial comment. |
One of my colleagues is working on a PR of his own that we believe will resolve the typing problem. |
…1259AM-into-calendar-input-saves-as-PM Fixed #7799 typing 1200AM to 1259AM into calendar input saves as PM
I'm submitting a ...
https://stackblitz.com/github/primefaces/primeng-issue-template
Current behavior
You type an AM time into the field after a PM time exists or no time is selected and the time in PM is maintained and saved.
You have a default time of 12:00AM and you select any date and the time saved is in PM
Expected behavior
You type an AM time into the field after a PM time exists or no time is selected and the AM time is maintained and saved.
You have a default time of 12:00AM and you select any date and the time saved is in AM
Minimal reproduction of the problem with instructions
Either
OR
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: