Skip to content

Commit

Permalink
Merge pull request jdewit#17 from terribletriojoe/master
Browse files Browse the repository at this point in the history
Fixed meridian bug in 'current' time initialization
  • Loading branch information
jdewit committed Jun 18, 2012
2 parents de02883 + 00803c7 commit 4c343a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/bootstrap-timepicker.js
Expand Up @@ -137,8 +137,10 @@
if ( this.showMeridian ) {
if (hours === 0) {
hours = 12;
} else if (hours > 12) {
hours = hours - 12;
} else if (hours >= 12) {
if (hours > 12) {
hours = hours - 12;
}
meridian = "PM";
} else {
meridian = "AM";
Expand Down

0 comments on commit 4c343a3

Please sign in to comment.