forked from saurabh/personal-journal
changed date format
This commit is contained in:
parent
b289050800
commit
9cef3dc838
|
@ -123,7 +123,7 @@ class JournalPaper
|
||||||
when "level_type"
|
when "level_type"
|
||||||
pd_data << {"data_title" => ( !p.journal_levels.blank? ? "(#{p.journal_levels.collect{|x| x.title}.join(', ')})" : nil)}
|
pd_data << {"data_title" => ( !p.journal_levels.blank? ? "(#{p.journal_levels.collect{|x| x.title}.join(', ')})" : nil)}
|
||||||
when "publication_date"
|
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"
|
when "author_type"
|
||||||
pd_data << {"data_title" => (p.journal_paper_author_types.collect{|jat| jat.title}.join(", ") rescue "")}
|
pd_data << {"data_title" => (p.journal_paper_author_types.collect{|jat| jat.title}.join(", ") rescue "")}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue