diff --git a/app/models/project.rb b/app/models/project.rb index 00f9eec..aadcb5a 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -88,13 +88,7 @@ class Project if t == "project_title" pd_data << { "data_title" => "#{p.send(t)}" } elsif t == "period" - - if !p.send('period_start_date').nil? or !p.send('period_end_date').nil? - date = (p.send('period_start_date').strftime('%Y.%m.%d') rescue "")+' ~ '+(p.send('period_end_date').strftime('%Y.%m.%d') rescue I18n.t('personal_project.up_to_today')) - else - date = "" - end - + date = p.duration pd_data << { "data_title" => date } elsif t == "project_type" pd_data << {"data_title" => (p.project_type.title rescue "")}