From 210a200f193f72a0d4add6f2c5e445dce840df15 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Wed, 28 Jun 2017 14:27:37 +0800 Subject: [PATCH] removed date from duration and period --- app/models/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/project.rb b/app/models/project.rb index 82073c0..00f9eec 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.%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