Good afternoon.
We default to custom model forms or date format is in "dd/mm/yyyy" and we need to change it to "yyyy-mm-dd".
I am using o Alfresco 7.1 dockerized with docker-compose.yml. The Server is with the timezone America/Montevideo and in Spanish the installation of the OS.
Also added user.region and user.country not docker-compose.
How do I make this change in the entire Alfresco environment?
Thanks
You need to override some properties.
If you are using SDK then share side there will be properties file
share-jar\src\main\resources\alfresco\web-extension\messages\**-share.properties
You need to modify below properties.
## Date Formats
#Used client side (uses Alfresco.util.formatDate)
date-format.default=mm/dd/yyyy HH:MM:ss
date-format.defaultDateOnly=mm/dd/yy
date-format.shortDate=d/m/yy
date-format.mediumDate=d mmm, yyyy
date-format.mediumDateNoYear=d mmm
date-format.longDate=dd mmmm, yyyy
date-format.longDateNoYear=dd mmmm
date-format.fullDate=dddd, d mmmm, yyyy
date-format.fullDateTime=dddd, d mmmm, yyyy 'at' h:MM TT
This way I have changed.(Note: This is changed property)
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.