Open kwin opened 3 years ago
Currently in https://github.com/adobe/aem-core-wcm-components/blob/28c15c315f1e10c7d7d986caa83598dc8e22ead6/content/src/content/jcr_root/apps/core/wcm/components/list/v2/list/item.html#L22 the date formatter does not set a locale. As usually templates are not-locale specific the date format as set in the content policy(https://github.com/adobe/aem-core-wcm-components/blob/master/content/src/content/jcr_root/apps/core/wcm/components/list/v2/list/README.md#component-policy-configuration-properties) has to be set in a way that it works for all locales.
An option which would allow to select one of the predefined formats outlined in https://docs.oracle.com/javase/tutorial/i18n/format/dateFormat.html would work for all locales!
As HTL does not support predefined formats yet I opened https://issues.apache.org/jira/browse/SLING-9983.
Feature Request
Currently in https://github.com/adobe/aem-core-wcm-components/blob/28c15c315f1e10c7d7d986caa83598dc8e22ead6/content/src/content/jcr_root/apps/core/wcm/components/list/v2/list/item.html#L22 the date formatter does not set a locale. As usually templates are not-locale specific the date format as set in the content policy(https://github.com/adobe/aem-core-wcm-components/blob/master/content/src/content/jcr_root/apps/core/wcm/components/list/v2/list/README.md#component-policy-configuration-properties) has to be set in a way that it works for all locales.
An option which would allow to select one of the predefined formats outlined in https://docs.oracle.com/javase/tutorial/i18n/format/dateFormat.html would work for all locales!