fix: 12am changed to 12pm wrongly (#4451)
* fix: 12am changed to 12pm wrongly * fix: conditionalpull/4570/head
parent
c5842a2153
commit
d036a91f6d
|
@ -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…
Reference in New Issue