Hi guys,
I need to show a d:date property with seconds in Alfresco Share.
In the model property es defined as it's described in the following image:
In share-config-custom, I've configured this property as it's described in the following image:
I've used out-of-the-box Alfresco date.ftl template and I've configured it for showing and submitting time.
However, the result in Alfresco Share is without seconds, like this:
I need to show 4/2/2019 15:58:23, for example.
I haven't found how to change date time format of date.ftl component.
Thanks!
Solved! Go to Solution.
I've found a possible solution for my question, but I don't know if it's the best action to resolve it.
I've overrided form.get.properties, form.get_es.properties, ... in my custom share amp module and I've replaced the following two lines:
form.control.date-picker.entry.time.format=HH:mm:ss
form.control.date-picker.display.time.format=HH:MM:ss (24 Hour)
Note: I've translated the label "Hour" in each overrided file. For example, in file form.get_es.properties, I've typed HH:MM:ss (24 Horas).
I hope this answer can help someone.
Sergio.
I've found a possible solution for my question, but I don't know if it's the best action to resolve it.
I've overrided form.get.properties, form.get_es.properties, ... in my custom share amp module and I've replaced the following two lines:
form.control.date-picker.entry.time.format=HH:mm:ss
form.control.date-picker.display.time.format=HH:MM:ss (24 Hour)
Note: I've translated the label "Hour" in each overrided file. For example, in file form.get_es.properties, I've typed HH:MM:ss (24 Horas).
I hope this answer can help someone.
Sergio.
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.