It is not possible to easily change globally the date format.
One needs to override each element that includes nuxeo-date using the format property and/or the tooltipFormat:
https://github.com/nuxeo/nuxeo-ui-elements/blob/maintenance-2.2.x/widgets/nuxeo-date.html#L61
This means at least the following elements should be overriden:
FrantzMBP:nuxeo-web-ui ffischer$ find . -name "*.html" -type f | xargs grep -F 'nuxeo-date ' 2>/dev/null | cut -d ':' -f 1 | sort -u ./elements/nuxeo-admin/nuxeo-audit.html ./elements/nuxeo-cloud-services/nuxeo-cloud-tokens.html ./elements/nuxeo-collections/nuxeo-collections.html ./elements/nuxeo-document-activity/nuxeo-document-activity.html ./elements/nuxeo-document-history/nuxeo-document-history.html ./elements/nuxeo-document-info-bar/nuxeo-document-info-bar.html ./elements/nuxeo-document-info/nuxeo-document-info.html ./elements/nuxeo-home.html ./elements/nuxeo-results/nuxeo-default-results.html ./elements/nuxeo-results/nuxeo-document-content.html ./elements/nuxeo-tasks.html ./elements/nuxeo-tasks/nuxeo-tasks-list.html ./elements/search/default/nuxeo-default-search-results.html ./elements/search/expired/nuxeo-expired-search-results.html ./elements/search/nxql/nuxeo-nxql-search-results.html ./elements/workflow/nuxeo-document-task.html
And on top of that any element using them will need to be overriden and so on and so on.
Doing this would prevent customer from benefiting from hotfixes and is very heavy.
Expected behavior: have a mechanism similar to the slots or some kind of variable but something very light to change the date format and the tooltip too.
- depends on
-
NXP-25678 Evolve ConfigurationService to support list property and namespace
- Resolved
- is related to
-
NXDOC-1914 Document Web UI config property
- Resolved
- is required by
-
ELEMENTS-766 Set LL(L) date (time) default format
- Resolved