From 29ff27eee9582bfb8c656e187ffbb7632795e104 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Mon, 16 Oct 2017 17:30:53 +0200 Subject: [PATCH] =?UTF-8?q?[Fix=20#848]=20Correctly=20format=20the=20dates?= =?UTF-8?q?=20in=20the=20Identit=C3=A9=20part?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dossiers/_identite_entreprise.html.haml | 6 +++--- .../dossiers/_identite_individual.html.haml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/new_gestionnaire/dossiers/_identite_entreprise.html.haml b/app/views/new_gestionnaire/dossiers/_identite_entreprise.html.haml index bbb5ba9d9..0e090bac5 100644 --- a/app/views/new_gestionnaire/dossiers/_identite_entreprise.html.haml +++ b/app/views/new_gestionnaire/dossiers/_identite_entreprise.html.haml @@ -59,10 +59,10 @@ %td= entreprise.rna_information.objet %tr %th Date de création : - %td= entreprise.rna_information.date_creation + %td= entreprise.rna_information.date_creation.strftime("%d/%m/%Y") %tr %th Date de publication : - %td= entreprise.rna_information.date_publication + %td= entreprise.rna_information.date_publication.strftime("%d/%m/%Y") %tr %th Date de déclaration : - %td= entreprise.rna_information.date_declaration + %td= entreprise.rna_information.date_declaration.strftime("%d/%m/%Y") diff --git a/app/views/new_gestionnaire/dossiers/_identite_individual.html.haml b/app/views/new_gestionnaire/dossiers/_identite_individual.html.haml index 1f41ecd17..b55964edf 100644 --- a/app/views/new_gestionnaire/dossiers/_identite_individual.html.haml +++ b/app/views/new_gestionnaire/dossiers/_identite_individual.html.haml @@ -11,4 +11,4 @@ %td= individual.nom %tr %th Date de naissance : - %td= individual.birthdate + %td= Date.parse(individual.birthdate).strftime("%d/%m/%Y")