You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2018/03/29 11:40:00 UTC

[jira] [Updated] (SLING-7559) The default locale for date and number formatting should not rely on Locale.getDefault()

     [ https://issues.apache.org/jira/browse/SLING-7559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Konrad Windszus updated SLING-7559:
-----------------------------------
    Summary: The default locale for date and number formatting should not rely on Locale.getDefault()  (was: The default locale for date and number formatting should be similar to the one used for i18n)

> The default locale for date and number formatting should not rely on Locale.getDefault()
> ----------------------------------------------------------------------------------------
>
>                 Key: SLING-7559
>                 URL: https://issues.apache.org/jira/browse/SLING-7559
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>    Affects Versions: Scripting HTL Engine 1.0.52-1.3.1
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Currently for the default and number formatting a locale must be given as otherwise formatting is done without an explicit locale context. 
> That means that {{Locale.getDefault()}} is taken. Since this is heavily environment specific it is not a wise default. Instead the default locale should rather be similar to the locale being used for i18n purposes (i.e. determined by request's locale).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)