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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Malin (Jira)

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

Wei Zhang commented on OFBIZ-6614:
----------------------------------

Yes, The UtilDateTime.stringToTimeStamp(String dateTimeString, TimeZone tz, Locale locale) works fine. Thanks.

> 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)