Author: jacopoc
Date: Wed Jun 9 13:20:21 2010
New Revision: 952997
URL:
http://svn.apache.org/viewvc?rev=952997&view=revLog:
Implemented sql date to time converter to avoid errors with Oracle.
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/DateTimeConverters.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/DateTimeConverters.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/DateTimeConverters.java?rev=952997&r1=952996&r2=952997&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/DateTimeConverters.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/conversion/DateTimeConverters.java Wed Jun 9 13:20:21 2010
@@ -305,7 +305,7 @@ public class DateTimeConverters implemen
}
public java.sql.Time convert(java.sql.Date obj) throws ConversionException {
- throw new ConversionException("Conversion from Date to Time not supported");
+ return new java.sql.Time(obj.getTime());
}
}