changed date format

This commit is contained in:
Harry Bomrah 2016-04-11 19:55:31 +08:00
parent b289050800
commit 9cef3dc838
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class JournalPaper
when "level_type"
pd_data << {"data_title" => ( !p.journal_levels.blank? ? "(#{p.journal_levels.collect{|x| x.title}.join(', ')})" : nil)}
when "publication_date"
pd_data << {"data_title" => (p.send(t).strftime("%Y/%m") rescue "")}
pd_data << {"data_title" => (p.send(t).strftime("%Y/%m/%d") rescue "")}
when "author_type"
pd_data << {"data_title" => (p.journal_paper_author_types.collect{|jat| jat.title}.join(", ") rescue "")}
else