[ 
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
>             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.

Reply via email to