AngularStrap credential showing wrong date

I faced the following problem: angularStrap datepicker: if I set any date of 2014 through the controller, then the displayed value is the same, but from 2013.

For example: if I set a value 2014-10-12

in the controller then the displayed value will be2013-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 are no such problems with dates from other years.

EDIT

There is no problem in IE11 and Firefox, but the problem exists in Google Chrome 38.0.2125.101 m (Windows 7 64-bit)

+3


source to share





All Articles