Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Commit

Permalink
reverting dateSet watcher date variable, angular doesn't affects anyt…
Browse files Browse the repository at this point in the history
…hing
  • Loading branch information
45kb committed May 17, 2016
1 parent e32c78f commit 69e5148
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularjs-datepicker",
"version": "2.1.2",
"version": "2.1.3",
"description": "A datepicker directive for angularjs.",
"authors": [
"Filippo Oretti <[email protected]",
Expand Down
6 changes: 3 additions & 3 deletions dist/angular-datepicker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular-datepicker.sourcemap.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angularjs-datepicker",
"version": "2.1.2",
"version": "2.1.3",
"description": "A datepicker directive for angularjs.",
"homepage": "http://720kb.github.io/angular-datepicker",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/js/angular-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@

if (newValue) {

date = new Date($filter('date')(new Date(newValue), attr.dateFormat));
date = new Date(newValue);

$scope.month = $filter('date')(date, 'MMMM');//december-November like
$scope.monthNumber = Number($filter('date')(date, 'MM')); // 01-12 like
Expand Down

0 comments on commit 69e5148

Please sign in to comment.