@ -6579,8 +6579,9 @@ Date.checkLegal = function (str) {
if (ar.length <= 2) {
return MM >= 1 && MM <= 12;
}
Date._MD[1] = Date.isLeap(YY) ? 29 : 28;
var MD = Date._MD.slice(0);
return MM >= 1 && MM <= 12 && DD <= Date._MD[MM - 1];
MD[1] = Date.isLeap(YY) ? 29 : 28;
return MM >= 1 && MM <= 12 && DD <= MD[MM - 1];
};
Date.parseDateTime = function (str, fmt) {
@ -24062,8 +24062,9 @@ Date.checkLegal = function (str) {
@ -386,8 +386,9 @@ Date.checkLegal = function (str) {