svn commit: r611275 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java

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

svn commit: r611275 - /ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java

jleroux@apache.org
Author: jleroux
Date: Fri Jan 11 11:45:36 2008
New Revision: 611275

URL: http://svn.apache.org/viewvc?rev=611275&view=rev
Log:
Reverted from previous commit merged automatically from trunk to merge changes by hand now...

Modified:
    ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java

Modified: ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java?rev=611275&r1=611274&r2=611275&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java (original)
+++ ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/ObjectType.java Fri Jan 11 11:45:36 2008
@@ -581,14 +581,6 @@
                     // hack to mimic Timestamp.valueOf() method
                     if (str.length() > 0 && !str.contains(".")) {
                         str = str + ".0";
-                    } else {
-                        // DateFormat has a funny way of parsing milliseconds:
-                        // 00:00:00.2 parses to 00:00:00.002
-                        // so we'll add zeros to the end to get 00:00:00.200
-                        String[] timeSplit = str.split("[.]");
-                        if (timeSplit.length > 1 && timeSplit[1].length() < 3) {
-                            str = str + "000".substring(timeSplit[1].length());
-                        }
                     }
                 } else {
                     df = UtilDateTime.toDateTimeFormat(format, timeZone, null);