Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Scripting HTL Engine 1.4.6-1.4.0
-
None
Description
SLING-6399 introduced possibilities to format dates as mandated by the spec: https://github.com/adobe/htl-spec/blob/1.3/SPECIFICATION.md#122-format.
The problem is that date patterns patterns in general (even if a locale is passed) differ a lot between countries and languages. For that reason Java defines some standard formats which work for all languages/countries. The special strings "DEFAULT", "SHORT", "MEDIUM", "LONG", and "FULL" should be accepted as values which should lead to using https://docs.oracle.com/javase/8/docs/api/java/text/DateFormat.html#getDateInstance-int-java.util.Locale- as formatter. They are also defined by Unicode CLDR: http://cldr.unicode.org/translation/date-time-1/date-time-patterns#TOC-Basic-Date-Formats
Attachments
Issue Links
- is blocked by
-
SLING-9999 Remove cyclic dependency between scripting and servlets features
- Closed
- relates to
-
SLING-6140 Adding number formatting to Sightly/HTL
- Resolved
-
SLING-6102 Adding formatter to HTL/Sightly dates
- Resolved
-
SLING-6399 Implement support for date and number formatting for HTL
- Closed
- links to