Skip to content

Commit

Permalink
Merge pull request #88 from koiyu/master
Browse files Browse the repository at this point in the history
Fixes issue #86
  • Loading branch information
rajeshwarpatlolla authored Jun 26, 2016
2 parents a23f799 + cd92e3e commit 00e7d92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/ionic-timepicker.bundle.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/ionic-timepicker.provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ angular.module('ionic-timepicker.provider', [])
}
$scope.time.minutes = rem / 60;

$scope.time.hours = $scope.time.hours.toFixed(0);
$scope.time.minutes = $scope.time.minutes.toFixed(0);
$scope.time.hours = Math.floor($scope.time.hours);
$scope.time.minutes = Math.floor($scope.time.minutes);

if ($scope.time.hours.toString().length == 1) {
$scope.time.hours = '0' + $scope.time.hours;
Expand Down Expand Up @@ -152,4 +152,4 @@ angular.module('ionic-timepicker.provider', [])

}];

});
});

0 comments on commit 00e7d92

Please sign in to comment.