Details
-
New Feature
-
Resolution: Fixed
-
Major
-
4.5.4
-
None
Description
This is useful for a Date Picker widget that needs to display and format proper month and day names depending on the context locale.
{{velocity}} #set ($currentLocale = $services.localization.currentLocale) #set ($dateFormatSymbols = $datetool.getDateFormatSymbols($currentLocale)) $jsontool.serialize($dateFormatSymbols.shortMonths) {{/velocity}}
["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""]
Attachments
Issue Links
- blocks
-
XWIKI-11789 Cannot save a date property if the date format is locale-dependent and the wiki locale doesn't match the JVM locale
- Closed