That is correct.

-Adrian

[email protected] wrote:
Thank you. Wish I'd known a week ago. :-)

Could someone please clarify - the methods in UtilDateTime destined for deprecation are those not using TimeZone or Locale? So those using TimeZone and Locale are okay to use?

Cheers,
Anne.

2009/7/23 Adrian Crum (JIRA) <[email protected]>


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

    Adrian Crum closed OFBIZ-2748.
    ------------------------------

       Resolution: Won't Fix

    Anne,

    It would be preferable to use the TimeDuration class instead of
    these UtilDateTime methods.

    The UtilDateTime methods are flawed because they don't take locale
    and time zone into consideration, and they use millisecond
    arithmetic (a definite no-no). Those methods are about to be
    deprecated and eventually they will be removed.


     > Wrong calculation in UtilDateTime getIntervalInDays
     > ---------------------------------------------------
     >
     >                 Key: OFBIZ-2748
     >                 URL:
    https://issues.apache.org/jira/browse/OFBIZ-2748
    <https://issues.apache.org/jira/browse/OFBIZ-2748>
     >             Project: OFBiz
     >          Issue Type: Bug
     >          Components: framework
     >    Affects Versions: Release Branch 9.04
     >         Environment: Sun Java 6, Linux, Postgres
     >            Reporter: Anne Jessel
     >         Attachments: castbug.patch
     >
     >
     > If the two timestamps passed to getIntervalInDays are more than
    Integer.MAX_VALUE nanoseconds apart, the returned value is incorrect.

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




--
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Phone: (03) 9585 6788
Fax: (03) 9585 1086
Web: http://www.cohsoft.com.au/
Email: [email protected]

Bonsai ERP, the all-inclusive ERP system
http://www.bonsaierp.com.au/

Reply via email to