Skip to content

Commit

Permalink
parse min-date string solves #158 (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
bennypowers authored and admwx7 committed Sep 18, 2017
1 parent 113e132 commit 6f7474e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paper-date-picker.html
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
return pfx + ' pg-' + selectedPage;
},
_getFullYear: function(date) {
return date ? date.getFullYear() : null;
return date ? new Date(date).getFullYear() : null;
},
_splitHeadingDate: function(date, format, locale) {
var re = new RegExp(this.headingBreak, 'g');
Expand Down

0 comments on commit 6f7474e

Please sign in to comment.