[ 
https://issues.apache.org/jira/browse/OFBIZ-1127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510443
 ] 

Adrian Crum commented on OFBIZ-1127:
------------------------------------

A couple of thoughts on this...

1. Would it be better to make this a server setting or a user setting? A server 
setting could be configured in general.properties or something similar. A user 
preference could be added to the UserLogin entity.

2. There is already a list of available locales - see UtilMisc.java in the 
framework/base folder. There is no need to create an entity.

3.  The java.text.DateFormat class will format a date/time string appropriate 
for a given locale. So, this improvement would be quite simple to implement: If 
the server (or user) has specified a locale-dependent date/time format, then 
use the DateFormat class and the user's locale to format dates/times. Else, use 
the descending format (yyyy-mm-dd...).


> Modify the form widget to support user locales
> ----------------------------------------------
>
>                 Key: OFBIZ-1127
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1127
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Daniel Martínez
>            Priority: Minor
>
> Modify the form widget to support user parametrized user locales. To support 
> the local dates formats I propose a new Entity LocaleDateFormat which will 
> used by the user to choose his preferred date/time format. This entity will 
> have at least three columns:
> - PK
> - locale, a good list for this the CLDR (http://unicode.org/cldr/)
> - Varchar with date format , as described in javadoc of SimpleDateFormat
> Also, a parameter should be passed to the javascript calendar for it to use 
> the correct format

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to