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 (JIRA)" <ji...@apache.org> on 2015/09/11 17:22:45 UTC

[jira] [Commented] (OFBIZ-6614) Error when using org.ofbiz.base.util.UtilDateTime.toTimestamp("12/30/1899 00:00:00")

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

Adrian Crum commented on OFBIZ-6614:
------------------------------------

Most likely there is a flaw in your code. Try using the methods that take a TimeZone and Locale.

> Error when using org.ofbiz.base.util.UtilDateTime.toTimestamp("12/30/1899 00:00:00")
> ------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-6614
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6614
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>            Reporter: Wei Zhang
>
> The UtilDateTime.toTimestamp("12/30/1899 00:00:00") returns "1899-12-29 23:54:03.0". It's caused by com.ibm.icu.util.Calendar. I am not sure if we should to use java.util.Calendar instead of



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)