Merge pull request #3420 from volvachev/fix-calendar-pm-new

fix: calendar time, when writing pm in input
pull/3509/head
Tuğçe Küçükoğlu 2023-01-09 13:11:30 +03:00 committed by GitHub
commit 336d1eb006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1783,7 +1783,7 @@ export default {
throw 'Invalid Time'; 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); let time = this.parseTime(timeString);
value.setHours(time.hour); value.setHours(time.hour);