Skip to content

Commit

Permalink
fix: 12am changed to 12pm wrongly (#4451)
Browse files Browse the repository at this point in the history
* fix: 12am changed to 12pm wrongly

* fix: conditional
  • Loading branch information
zernonia authored Oct 5, 2023
1 parent c5842a2 commit d036a91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/lib/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down

0 comments on commit d036a91

Please sign in to comment.