From 93c40803d1eb7a5e1370f7b06ea8522b5c13c0bb Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 6 Apr 2016 01:58:44 +0800 Subject: [PATCH] fixed date --- app/models/project.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/project.rb b/app/models/project.rb index 58c7924..60042fb 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -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') rescue "")+' ~ '+(self.send('period_end_date').strftime('%Y.%m') rescue I18n.t('personal_project.up_to_today')) + 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')) else date = "" end @@ -90,7 +90,7 @@ class Project 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') rescue "")+' ~ '+(p.send('period_end_date').strftime('%Y.%m') rescue I18n.t('personal_project.up_to_today')) + 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