svn commit: r611282 - /ofbiz/branches/release4.0/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: r611282 - /ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/ObjectType.java

jleroux@apache.org
Author: jleroux
Date: Fri Jan 11 11:55:47 2008
New Revision: 611282

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

Modified:
    ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/ObjectType.java

Modified: ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/ObjectType.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/ObjectType.java?rev=611282&r1=611281&r2=611282&view=diff
==============================================================================
--- ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/ObjectType.java (original)
+++ ofbiz/branches/release4.0/framework/base/src/base/org/ofbiz/base/util/ObjectType.java Fri Jan 11 11:55:47 2008
@@ -645,14 +645,6 @@
                         return new java.sql.Timestamp(fieldDate.getTime());
                     } catch (ParseException e) {
                         throw new GeneralException("Could not convert " + str + " to " + type + ": ", e);
-                    } 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 if ("List".equals(type) || "java.util.List".equals(type)) {