Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(timepicker): correct meridian toggle condition
Browse files Browse the repository at this point in the history
- Fix check to be against hours being checked against the maximum for hours less than 12 (for time before noon)

Closes #4435
  • Loading branch information
kmccaw authored and wesleycho committed Oct 29, 2015
1 parent 468d68a commit 09ad740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timepicker/timepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ angular.module('ui.bootstrap.timepicker', [])
};

$scope.noToggleMeridian = function() {
if (selected.getHours() < 13) {
if (selected.getHours() < 12) {
return addMinutes(selected, 12 * 60) > max;
} else {
return addMinutes(selected, -12 * 60) < min;
Expand Down

0 comments on commit 09ad740

Please sign in to comment.