mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
fix: 12am changed to 12pm wrongly (#4451)
* fix: 12am changed to 12pm wrongly * fix: conditional
This commit is contained in:
parent
c5842a2153
commit
d036a91f6d
1 changed files with 2 additions and 0 deletions
|
@ -1803,6 +1803,8 @@ export default {
|
|||
} else {
|
||||
if (this.hourFormat == '12' && h !== 12 && this.pm) {
|
||||
h += 12;
|
||||
} else if (this.hourFormat == '12' && h == 12 && !this.pm) {
|
||||
h = 0;
|
||||
}
|
||||
|
||||
return { hour: h, minute: m, second: s };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue