You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function starting on line 1201 of skeuocard.js (ExpirationInputView.prototype._onKeyUp) takes the number you input and returns a date object. For some reason, if you use a month > 12 it will return a valid but incorrect date object. I made a workaround for this.
It was returning the date as long as month and year are not equal to zero. It was doing this by these lines:
dateObj = new Date(year, month - 1, day);
this.date = dateObj;
I changed it to return a date in the past if the month is > 12 like this:
if (month <=12) {
dateObj = new Date(year, month - 1, day);
} else {
dateObj = new Date(1900,1,1);
}
this.date = dateObj;
Since 1900 is in the past, Skeuocard recognized it as an invalid date.
I filled all info, and expire date with 33/12.
card.isValid() return true.
it should return false.
The text was updated successfully, but these errors were encountered: