Issue #16 Make the date format uniform with the rest of Indefero

This commit is contained in:
Simon Holywell 2012-04-13 11:19:46 +01:00
parent 60cdd2224f
commit b9c3ee1a09
2 changed files with 4 additions and 2 deletions

View File

@ -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) {

View File

@ -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);
}
}
/**