Calendar: maxDate with 12-hour formatting restricts values incorrectly #3253
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
If you set a max-date for a calendar to include a max time, and using the 12-hour format, it is not taking into consideration AM/PM parts when determining how to restrict the values.
Reproducer
https://codesandbox.io/s/quizzical-murdock-2uwuvr?file=/src/App.vue
PrimeVue version
3.18.1
Vue version
3.x
Language
ES6
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
where "maxDate" includes a time part that is in the AM, say 10AM
Change the AM/PM to PM. This is accepted. It shouldn't be.
Expected behavior
Should not be able to select 10PM on the last day when the max-date is set to 10AM.
The text was updated successfully, but these errors were encountered: