Author: ashish
Date: Tue Dec 21 11:08:56 2010
New Revision: 1051450
URL:
http://svn.apache.org/viewvc?rev=1051450&view=revLog:
Bug fix.
Anyone working in different time zone(lets say PST) should get issue in updating the record.
Modified:
ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy
Modified: ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy?rev=1051450&r1=1051449&r2=1051450&view=diff==============================================================================
--- ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy (original)
+++ ofbiz/trunk/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductAssoc.groovy Tue Dec 21 11:08:56 2010
@@ -49,7 +49,7 @@ fromDateStr = parameters.FROM_DATE;
fromDate = null;
if (UtilValidate.isNotEmpty(fromDateStr)) {
- fromDate = Timestamp.valueOf(fromDateStr);
+ fromDate = ObjectType.simpleTypeConvert(fromDateStr, "Timestamp", null, UtilHttp.getTimeZone(request), UtilHttp.getLocale(request), false);
}
if (!fromDate) {
fromDate = request.getAttribute("ProductAssocCreateFromDate");