修复之前的提交导致范围选择的时候切换年月报错问题

pull/1172/head
sunxiaobin89 2022-12-03 20:11:55 +08:00
parent 0a4bb74c57
commit 47c45ac4a3
1 changed files with 3 additions and 0 deletions

View File

@ -786,6 +786,9 @@
//校验日期有效数字
,checkValid = function(dateTime){
if (!dateTime) {
return;
}
if(dateTime.year > LIMIT_YEAR[1]) dateTime.year = LIMIT_YEAR[1], error = true; //不能超过20万年
if(dateTime.month > 11) dateTime.month = 11, error = true;
if(dateTime.seconds > 59) dateTime.seconds = 0, dateTime.minutes++, error = true;