From 2449c18d63a3eb4c9e7c21897a2f0e4dc3723836 Mon Sep 17 00:00:00 2001 From: Frank Dillon Date: Mon, 24 Nov 2008 16:16:59 +0000 Subject: [PATCH] fixed an issue which was causing the project management system to not recognize December as a valid month --- www/extras/wobject/ProjectManager/projectDisplay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/extras/wobject/ProjectManager/projectDisplay.js b/www/extras/wobject/ProjectManager/projectDisplay.js index 0185fbf47..d293162c2 100644 --- a/www/extras/wobject/ProjectManager/projectDisplay.js +++ b/www/extras/wobject/ProjectManager/projectDisplay.js @@ -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() ) {