Fix diploma duration date format

This commit is contained in:
manson 2014-07-02 12:27:17 +08:00
parent af1e0c942a
commit a69fb2cf12
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class Diploma
before_validation :add_http
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
def slug_title