You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Adrian Crum (Commented) (JIRA)" <ji...@apache.org> on 2011/11/07 17:26:51 UTC
[jira] [Commented] (OFBIZ-4545) DateFormat API extension
[ 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