adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
737 stars 745 forks source link

List: modification date should be localized and support predefined patterns #1304

Open kwin opened 3 years ago

kwin commented 3 years ago

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!

kwin commented 3 years ago

As HTL does not support predefined formats yet I opened https://issues.apache.org/jira/browse/SLING-9983.