[Fix #589] When getting birthdate from France Connect format it to ISO

This commit is contained in:
Mathieu Magnin 2017-07-26 10:34:16 +02:00
parent 3804ab5911
commit a3b069e501

View file

@ -82,7 +82,7 @@ class Users::DossiersController < UsersController
individual.update_column :gender, @facade.dossier.france_connect_information.gender
individual.update_column :nom, @facade.dossier.france_connect_information.family_name
individual.update_column :prenom, @facade.dossier.france_connect_information.given_name
individual.update_column :birthdate, @facade.dossier.france_connect_information.birthdate.strftime("%d/%m/%Y")
individual.update_column :birthdate, @facade.dossier.france_connect_information.birthdate.iso8601
end
rescue ActiveRecord::RecordNotFound