ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Crum (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-4545) DateFormat API extension
Date Mon, 07 Nov 2011 16:26:51 GMT

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

Adrian Crum commented on OFBIZ-4545:
------------------------------------

This patch needs some work:

1. Do not add date/time format methods that do not include Locale and TimeZone parameters.
All conversions from/to Date/String must include those objects for proper localization.

2. Do not provide defaults if the Locale or TimeZone parameters are null. Client code should
provide the defaults - since UtilDateTime can't "know" what default values to provide.

3. There is no need to convert a Timestamp to a Date - since Timestamp extends Date. It would
be best if the new methods accepted a Date argument instead of a Timestamp.

                
> DateFormat API extension
> ------------------------
>
>                 Key: OFBIZ-4545
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4545
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Dimitri Unruh
>            Priority: Minor
>         Attachments: OFBIZ-4545.patch
>
>
> Some API extensions for Dateformating

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message