forked from saurabh/personal-diploma
Fix diploma duration date format
This commit is contained in:
parent
af1e0c942a
commit
a69fb2cf12
|
@ -25,7 +25,7 @@ class Diploma
|
||||||
before_validation :add_http
|
before_validation :add_http
|
||||||
|
|
||||||
def duration
|
def duration
|
||||||
self.start_date.to_s+' ~ '+self.end_date.to_s
|
self.start_date.strftime('%Y.%m')+' ~ '+self.end_date.strftime('%Y.%m')
|
||||||
end
|
end
|
||||||
|
|
||||||
def slug_title
|
def slug_title
|
||||||
|
|
Loading…
Reference in New Issue