Defect #29918

Related issues section ignores the date format setting

Added by Go MAEDA 10 days ago. Updated 9 days ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:UI
Target version:3.4.7
Resolution: Affected version:3.4.0

Description

Start date and due date in the related issues section are always displayed in the format YYYY-MM-DD regardless of the date format setting.

incorrect-date-format@2x.png (41.2 KB) Go MAEDA, 2018-11-07 08:58


Related issues

Related to Redmine - Feature #3425: View progress bar of related issues Closed 2009-05-27

History

#1 Updated by Mizuki ISHIKAWA 9 days ago

The following changes should solve the problem.

diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index e1e0fc559b..f71eb13b23 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -129,8 +129,8 @@ module IssuesHelper
              content_tag('td', check_box_tag("ids[]", other_issue.id, false, :id => nil), :class => 'checkbox') +
              content_tag('td', relation.to_s(@issue) {|other| link_to_issue(other, :project => Setting.cross_project_issue_relations?)}.html_safe, :class => 'subject', :style => 'width: 50%') +
              content_tag('td', other_issue.status, :class => 'status') +
-             content_tag('td', other_issue.start_date, :class => 'start_date') +
-             content_tag('td', other_issue.due_date, :class => 'due_date') +
+             content_tag('td', format_date(other_issue.start_date), :class => 'start_date') +
+             content_tag('td', format_date(other_issue.due_date), :class => 'due_date') +
              content_tag('td', other_issue.disabled_core_fields.include?('done_ratio') ? '' : progress_bar(other_issue.done_ratio), :class=> 'done_ratio') +
              content_tag('td', buttons, :class => 'buttons'),
              :id => "relation-#{relation.id}",

#2 Updated by Go MAEDA 9 days ago

  • Target version set to 4.1.0

LGTM. Setting the target version to 4.1.0.

#3 Updated by Go MAEDA 9 days ago

  • Related to Feature #3425: View progress bar of related issues added

#4 Updated by Go MAEDA 9 days ago

  • Target version changed from 4.1.0 to 3.4.7
  • Affected version set to 3.4.0

format_date was removed in r15981 (#3425).

Also available in: Atom PDF