diff --git a/src/IDF/Views/Issue.php b/src/IDF/Views/Issue.php index 44be0de..5490edd 100644 --- a/src/IDF/Views/Issue.php +++ b/src/IDF/Views/Issue.php @@ -475,7 +475,8 @@ class IDF_Views_Issue 'page_title' => $title, 'preview' => $preview, 'issue' => new IDF_Issue(), - 'date_today' => date('Y-m-d 23:59') + 'date_today' => date('Y-m-d'), + 'default_time' => Pluf::f('issue_default_due_date_time'), ), self::autoCompleteArrays($prj) ); @@ -713,7 +714,8 @@ class IDF_Views_Issue 'previous_issue_id' => $previous_issue_id, 'next_issue_id' => $next_issue_id, 'related_issues' => $related_issues, - 'date_today' => date('Y-m-d 23:59'), + 'date_today' => date('Y-m-d'), + 'default_time' => Pluf::f('issue_default_due_date_time'), ), $arrays), $request); diff --git a/src/IDF/conf/idf.php-dist b/src/IDF/conf/idf.php-dist index 97bd441..1b44df7 100644 --- a/src/IDF/conf/idf.php-dist +++ b/src/IDF/conf/idf.php-dist @@ -544,5 +544,9 @@ $cfg['activity_section_weights'] = array( # high enough to show a proper activity index for those projects as well. $cfg['activity_lookback'] = 7; +# Configure the default time that should be used when setting an issue due date +# via the quick (COB, EOW, etc) menu or via the date picker +$cfg['issue_default_due_date_time'] = '17:30'; + return $cfg; diff --git a/src/IDF/templates/idf/issues/create.html b/src/IDF/templates/idf/issues/create.html index 7a4a934..97b5c2d 100644 --- a/src/IDF/templates/idf/issues/create.html +++ b/src/IDF/templates/idf/issues/create.html @@ -66,7 +66,7 @@