Import french date using Nuxeo CSV
I've read in Nuxeo CSV documentation that : dates must use the format MM/dd/yyyy, i want to know if there is a way to use this format : dd/MM/yyyy istead . Any suggestions ?
Looks like the date format is defined in this class: https://github.com/nuxeo/nuxeo-csv/blob/a7aa5bb1658fc5b11d6cc435bdebfc5bbabca9bc/src/main/java/org/nuxeo/ecm/csv/CSVImporterOptions.java
So maybe just git clone, modify the date format and mvn install will do the job. At first glance it doesn't look like you can tweak this by xml configuration but maybe I'm wrong
To be able to modify the date format you need to override the actions bean:
@Name("csvImportActions") and extend the
org.nuxeo.ecm.csv.CSVImportActions. Then, you need to redefine the
importCSVFile method (see this page). With this method, you will be able to change the
CSVImporterOptions objet to handle your date format.