From 8fb96cf88e3fa9a99aaef7eec00d22b1560cb767 Mon Sep 17 00:00:00 2001 From: Reddy Uppathi Date: Fri, 22 Nov 2024 02:16:36 +0530 Subject: [PATCH] fix: update time format in 12 hrs format if hourFormat is 12hrs --- packages/primevue/src/datepicker/DatePicker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index 266099490..f806d08ed 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -2926,7 +2926,7 @@ export default { return yearPickerValues; }, formattedCurrentHour() { - if (this.currentHour == 0) { + if (this.currentHour == 0 && this.hourFormat == '12') { return this.currentHour + 12; }