fix: 12am changed to 12pm wrongly (#4451)

* fix: 12am changed to 12pm wrongly

* fix: conditional
pull/4570/head
zernonia 2023-10-05 21:08:07 +08:00 committed by GitHub
parent c5842a2153
commit d036a91f6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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 };