fixed an issue which was causing the project management system to not recognize December as a valid month
This commit is contained in:
parent
ac0032fedf
commit
2449c18d63
1 changed files with 2 additions and 2 deletions
|
|
@ -399,12 +399,12 @@ function isValidDate(dt) {
|
|||
var dd = split[2];
|
||||
|
||||
// if month out of range
|
||||
if ( mm < 0 || mm > 11 ) {
|
||||
if ( mm < 1 || mm > 12 ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// get last day in month
|
||||
var d = (11 == mm) ? new Date(yyyy + 1, 0, 0) : new Date(yyyy, mm + 1, 0);
|
||||
var d = (12 == mm) ? new Date(yyyy + 1, 0, 0) : new Date(yyyy, mm + 1, 0);
|
||||
|
||||
// if date out of range
|
||||
if ( dd < 1 || dd > d.getDate() ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue