diff --git a/src/IDF/Form/IssueUpdate.php b/src/IDF/Form/IssueUpdate.php index 09f5e8c..cea30f2 100644 --- a/src/IDF/Form/IssueUpdate.php +++ b/src/IDF/Form/IssueUpdate.php @@ -395,7 +395,7 @@ class IDF_Form_IssueUpdate extends IDF_Form_IssueCreate $changes['ow'] = (is_null($owner)) ? '---' : $owner->login; } if (trim($this->issue->due_dtime) != trim($this->cleaned_data['due_dtime'])) { - $changes['du'] = trim($this->cleaned_data['due_dtime']); + $changes['du'] = Pluf_Template_dateFormat($this->cleaned_data['due_dtime']); } // Issue relations - additions foreach ($this->cleaned_data['_added_issue_relations'] as $verb => $ids) { diff --git a/src/IDF/Views/Issue.php b/src/IDF/Views/Issue.php index 325c39a..ef34f66 100644 --- a/src/IDF/Views/Issue.php +++ b/src/IDF/Views/Issue.php @@ -1156,7 +1156,9 @@ function IDF_Views_Issue_SummaryAndLabelsUnknownProject($field, $issue, $extra=' */ function IDF_Views_Issue_DueDate($field, $issue, $extra='') { - return $issue->$field; + if($issue->$field) { + return Pluf_Template_dateFormat($issue->$field); + } } /**