Fix bug enterprise's date_creation

This commit is contained in:
Xavier J 2016-01-28 11:29:44 +01:00
parent cef48fb03c
commit 68bb4935e7
8 changed files with 30 additions and 20 deletions

View file

@ -15,6 +15,8 @@ class SIADE::EntrepriseAdapter
data_source[:entreprise].each do |k, v|
params[k] = v if attr_to_fetch.include?(k)
end
params[:date_creation] = Time.at(params[:date_creation]).to_datetime
params
rescue
nil