Manual Bugfix:
You have to change the calculation.
$weeks_preg = floor(($full_days/7)+1);
instead of
$weeks_preg = floor($full_days/7);
Tipp for manual bug fix:
You have to delte this: max=”‘.date(“Y-m-d”).'”
from the following line: <input type=”date” id=”duedate” class=”form-control” name=”duedate” value=”‘.$duedate.'” class=”medium” min=”‘.date(“Y-m-d”, strtotime(‘-1 year’)).'” min=”‘.date(“Y-m-d”, strtotime(‘-1 year’)).'” max=”‘.date(“Y-m-d”).'” >
-
This reply was modified 3 years, 10 months ago by danney07.