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

Commit

Permalink
Fixed #20
Browse files Browse the repository at this point in the history
  • Loading branch information
Fengyuan Chen committed Jan 11, 2016
1 parent ad16c42 commit a5c50c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,7 @@
var i;

if (isDate(date)) {
return new Date(date);
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
} else if (isString(date)) {
parts = date.match(REGEXP_DIGITS) || [];
}
Expand Down

0 comments on commit a5c50c3

Please sign in to comment.