From 404a238e9e4b8b69f2bb5cdf627d42dd773e1c44 Mon Sep 17 00:00:00 2001 From: Egor Volvachev Date: Fri, 16 Dec 2022 22:09:23 +0300 Subject: [PATCH] fix: calendar time, when writing pm in input Fixes #3398. --- components/calendar/Calendar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/calendar/Calendar.vue b/components/calendar/Calendar.vue index b35803717..73b9ccd44 100755 --- a/components/calendar/Calendar.vue +++ b/components/calendar/Calendar.vue @@ -1783,7 +1783,7 @@ export default { throw 'Invalid Time'; } - this.pm = ampm === this.$primevue.config.locale.am || ampm === this.$primevue.config.locale.am.toLowerCase(); + this.pm = ampm === this.$primevue.config.locale.pm || ampm === this.$primevue.config.locale.pm.toLowerCase(); let time = this.parseTime(timeString); value.setHours(time.hour);