Skip to content

Commit

Permalink
Fixes issue rajeshwarpatlolla#86
Browse files Browse the repository at this point in the history
  • Loading branch information
Jari Keinänen committed Jun 15, 2016
1 parent a23f799 commit cd92e3e
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 cd92e3e

Please sign in to comment.