DatePicker: Wrong hour displayed for midnight when set to timeOnly and 24h #6824
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
When using the DatePicker component with timeOnly the hour jumps from 23 to 12 to 1 when changing the hour.
The value in the textbox and the underlying model does change to 0 correctly.
This can be seen on the PrimeVue website (https://primevue.org/datepicker/#time):
Reproducer
https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-aeuvny?file=src%2FApp.vue
PrimeVue version
4.2.2
Vue version
3.x
Language
TypeScript
Build / Runtime
TypeScript
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
The value in the DatePicker between 23 and 01 should be 00 and not 12.
The text was updated successfully, but these errors were encountered: