Skip to content

Commit

Permalink
Issue#53 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshwarpatlolla committed Oct 8, 2015
1 parent e44525f commit ae9293c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ionic-timepicker.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
},
link: function (scope, element, attrs) {

console.log(scope.inputObj);

var today = new Date();
var currentEpoch = today.getHours();
var currentEpoch = ((new Date()).getHours() * 60 * 60) + ((new Date()).getMinutes() * 60);

scope.inputEpochTime = scope.inputObj.inputEpochTime ? scope.inputObj.inputEpochTime : (currentEpoch * 60 * 60);
scope.inputEpochTime = scope.inputObj.inputEpochTime ? scope.inputObj.inputEpochTime : currentEpoch;
scope.step = scope.inputObj.step ? scope.inputObj.step : 15;
scope.format = scope.inputObj.format ? scope.inputObj.format : 24;
scope.titleLabel = scope.inputObj.titleLabel ? scope.inputObj.titleLabel : 'Time Picker';
Expand Down

0 comments on commit ae9293c

Please sign in to comment.