Skip to content

Commit

Permalink
fix: update time format in 12 hrs format if hourFormat is 12hrs
Browse files Browse the repository at this point in the history
  • Loading branch information
Reddy Uppathi committed Nov 21, 2024
1 parent 312bf67 commit 8fb96cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/datepicker/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2926,7 +2926,7 @@ export default {
return yearPickerValues;
},
formattedCurrentHour() {
if (this.currentHour == 0) {
if (this.currentHour == 0 && this.hourFormat == '12') {
return this.currentHour + 12;
}
Expand Down

0 comments on commit 8fb96cf

Please sign in to comment.