Tuesday 15 March 2011

javascript - AngularStrap datepicker shows wrong date -



javascript - AngularStrap datepicker shows wrong date -

i've met next problem angularstrap datepicker: if set via controller date of 2014 year, displayed value same of 2013 year.

for example: if set 2014-10-12 value in controller, displayed value 2013-10-12

html:

<div ng-app="myapp" ng-controller="mycontroller"> <input type="text" placeholder="select date" ng-model="updated_at" bs-datepicker data-date-format="yyyy-mm-dd" data-date-type="string" data-autoclose="1"> </div>

js:

angular.module('myapp', ['mgcrea.ngstrap']) .controller('mycontroller', function ($scope) { $scope.updated_at = '2014-10-12'; });

http://jsfiddle.net/alexeime/83b747pw/

http://take.ms/cjk4s

there no such problems dates of other years.

edit:

there no problem in ie11 & firefox, problem exists in google chrome 38.0.2125.101 m (windows 7 64-bit)

javascript angularjs datepicker angular-strap

No comments:

Post a Comment