diff --git a/module/program/view/pgmedit.html.php b/module/program/view/pgmedit.html.php index 196b3f9cee..c0130dd4ae 100644 --- a/module/program/view/pgmedit.html.php +++ b/module/program/view/pgmedit.html.php @@ -74,7 +74,7 @@ ?> - end == LONG_TIME ? 999 : '';?> + end == LONG_TIME ? 999 : (strtotime($program->end) - strtotime($program->begin)) / 3600 / 24 + 1;?> program->endList , $endValue, "onclick='computeEndDate(this.value)'");?> diff --git a/module/program/view/prjedit.html.php b/module/program/view/prjedit.html.php index cdfbf5d1a1..0083dc241b 100644 --- a/module/program/view/prjedit.html.php +++ b/module/program/view/prjedit.html.php @@ -79,7 +79,7 @@ ?> - end == LONG_TIME ? 999 : '';?> + end == LONG_TIME ? 999 : (strtotime($project->end) - strtotime($project->begin)) / 3600 / 24 + 1;?> program->endList , $deltaValue, "onclick='computeEndDate(this.value)'");?> model == 'scrum'):?>