* fix a bug: add one day when computing work days.

This commit is contained in:
areyou123456
2012-04-15 02:58:40 +00:00
parent 892554e979
commit ba32a0bf8f

View File

@@ -34,7 +34,7 @@ function computeDaysDelta(date1, date2)
{
date1 = convertStringToDate(date1);
date2 = convertStringToDate(date2);
return (date2 - date1) / (1000 * 60 * 60 * 24)
return (date2 - date1) / (1000 * 60 * 60 * 24) + 1
}
/**