You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Daniel Martínez (JIRA)" <ji...@apache.org> on 2007/07/06 21:07:04 UTC

[jira] Updated: (OFBIZ-1127) Modify the form widget to support user locales

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

Daniel Martínez updated OFBIZ-1127:
-----------------------------------

    Attachment: localedateformats1.patch

This patch modifies HtmlFormRenderer to display dates/times in localized format. It should be regarded as a test as IMO has its drawbacks:

1- Nanoseconds are lost in timestamp as SimpleDateFormat does not have support for them
2- It only works for widget forms, .ftl screens show dates in the current sortable format
3- It can cause conflicts when form and not-a-service as the java method/minilang will surely only recognize dates/times in sortable format

> 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
>         Attachments: localedateformats1.patch
>
>
> 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.