removed date from duration and period

This commit is contained in:
Harry Bomrah 2017-06-28 14:27:37 +08:00
parent 957ddd7431
commit 210a200f19
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class Project
def duration
if !self.send('period_start_date').nil? or !self.send('period_end_date').nil?
date = (self.send('period_start_date').strftime('%Y.%m.%d') rescue "")+' ~ '+(self.send('period_end_date').strftime('%Y.%m.%d') rescue I18n.t('personal_project.up_to_today'))
date = (self.send('period_start_date').strftime('%Y.%m') rescue "")+' ~ '+(self.send('period_end_date').strftime('%Y.%m') rescue I18n.t('personal_project.up_to_today'))
else
date = ""
end