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

Commit 09ad740

Browse files
kmccawwesleycho
authored andcommitted
fix(timepicker): correct meridian toggle condition
- Fix check to be against hours being checked against the maximum for hours less than 12 (for time before noon) Closes #4435
1 parent 468d68a commit 09ad740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timepicker/timepicker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ angular.module('ui.bootstrap.timepicker', [])
111111
};
112112

113113
$scope.noToggleMeridian = function() {
114-
if (selected.getHours() < 13) {
114+
if (selected.getHours() < 12) {
115115
return addMinutes(selected, 12 * 60) > max;
116116
} else {
117117
return addMinutes(selected, -12 * 60) < min;

0 commit comments

Comments
 (0)