Time.at => Time.zone.at
This commit is contained in:
parent
26ae29ea52
commit
ee0a6b1913
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class ApiEntreprise::EntrepriseAdapter < ApiEntreprise::Adapter
|
|||
params = data_source[:entreprise].slice(*attr_to_fetch)
|
||||
|
||||
if valid_params?(params)
|
||||
params[:date_creation] = Time.at(params[:date_creation]).to_datetime
|
||||
params[:date_creation] = Time.zone.at(params[:date_creation]).to_datetime
|
||||
params.transform_keys { |k| :"entreprise_#{k}" }
|
||||
else
|
||||
{}
|
||||
|
|
Loading…
Add table
Reference in a new issue