Skip to content

Commit

Permalink
Merge pull request #6831 from sivareddyuppathi/fix/time-picker
Browse files Browse the repository at this point in the history
fix: update time format in 12 hrs format if hourFormat is 12hrs
  • Loading branch information
tugcekucukoglu authored Nov 22, 2024
2 parents 312bf67 + 8fb96cf commit 4bbc738
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 4bbc738

Please sign in to comment.