I'm working on angular based app and i have a really strange bug.. When i use:
<input type="date" ng-model="date">
the $scope.date
has one day delay...
When I try to run the attachment code it prints the date
which I have selected but with one day delay :(
What can I do?!
Thank you :)
var app = angular.module('app', []);
app.controller('ctrl', ['$scope', function($scope){
}])
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<body ng-app="app">
<body ng-controller="ctrl">
<input type="date" ng-model="date">
{{ date }}
</body>
</body>