Merge pull request #10454 from demarches-simplifiees/9827-add-specs

corrige quelques bugs de la feature export template (renommage dans le zip)
This commit is contained in:
krichtof 2024-06-04 13:18:12 +00:00 committed by GitHub
commit 45814fdbfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 282 additions and 69 deletions

View file

@ -307,7 +307,8 @@ module TagsSubstitutionConcern
def format_date(date)
if date.present?
date.strftime('%d/%m/%Y')
format = defined?(self.class::FORMAT_DATE) ? self.class::FORMAT_DATE : '%d/%m/%Y'
date.strftime(format)
else
''
end