diff options
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/EventDateTimeFilterCtrl.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/www/js/EventDateTimeFilterCtrl.js b/www/js/EventDateTimeFilterCtrl.js index ee614e52..3c9bcb8a 100644 --- a/www/js/EventDateTimeFilterCtrl.js +++ b/www/js/EventDateTimeFilterCtrl.js @@ -25,6 +25,10 @@ angular.module('zmApp.controllers') } }; + $scope.$on('$ionicView.beforeEnter', function () { + $scope.today = moment().format("YYYY-MM-DD"); + }); + //-------------------------------------------------------------------------- // Clears filters //-------------------------------------------------------------------------- @@ -89,6 +93,10 @@ angular.module('zmApp.controllers') $rootScope.toString = moment($rootScope.toDate).format("YYYY-MM-DD") + " " + moment($rootScope.toTime).format("HH:mm:ss"); + + + + //console.log("CONCAT DATES " + temp); // // var startDate = moment(temp).format("YYYY-MM-DD hh:mm:ss"); |
