fixed award date

This commit is contained in:
Harry Bomrah 2016-04-06 14:59:45 +08:00
parent 8bcab846c4
commit b97742b6db
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ class Honor
elsif t == "honor_type"
pd_data << {"data_title" => (p.honor_type.title rescue "")}
elsif t == "award_date"
pd_data << {"data_title" => (p.send(fs).strftime("%Y/%m/%d") rescue "")}
pd_data << {"data_title" => (p.send(t).strftime("%Y/%m/%d") rescue "")}
else
pd_data << { "data_title" => p.send(t) }
end