From 329c7fa8963e345da0d2e3bcb0da91df238450fb Mon Sep 17 00:00:00 2001 From: areyou123456 Date: Sun, 1 Jul 2012 01:14:42 +0000 Subject: [PATCH] * finish a bug #318 --- module/project/js/common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/project/js/common.js b/module/project/js/common.js index 843fe351d2..80454deaa1 100644 --- a/module/project/js/common.js +++ b/module/project/js/common.js @@ -68,19 +68,19 @@ function computeEndDate() endDate = begin + 14 * 24 * 60 * 60 * 1000; endDate = new Date(endDate); year = endDate.getFullYear(); - month = endDate.getMonth(); + month = endDate.getMonth() + 1; day = endDate.getDate() - 1; } else if(workDays == '12') { year = beginDate.getFullYear() + 1; - month = beginDate.getMonth(); + month = beginDate.getMonth() + 1; day = beginDate.getDate() - 1; } else { year = beginDate.getFullYear(); - month = beginDate.getMonth() + Number(workDays); + month = beginDate.getMonth() + Number(workDays) + 1; if(month > 12) { year = year + 1;