Author: jacopoc
Date: Mon Jun 11 01:26:37 2007
New Revision: 546041
URL:
http://svn.apache.org/viewvc?view=rev&rev=546041Log:
Fixed bug reported by Krzysztof Podejma in issue OFBIZ-1073.
Modified:
ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/quote/ViewQuoteProfit.bsh
Modified: ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/quote/ViewQuoteProfit.bsh
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/quote/ViewQuoteProfit.bsh?view=diff&rev=546041&r1=546040&r2=546041==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/quote/ViewQuoteProfit.bsh (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/quote/ViewQuoteProfit.bsh Mon Jun 11 01:26:37 2007
@@ -19,6 +19,7 @@
import java.util.Date;
import java.sql.Timestamp;
+import org.ofbiz.base.util.UtilDateTime;
import org.ofbiz.base.util.UtilMisc;
import org.ofbiz.entity.util.EntityUtil;
@@ -39,7 +40,7 @@
Timestamp issueDate = quote.getTimestamp("issueDate");
if (issueDate == null) {
- issueDate = new Timestamp((new Date()).getTime());
+ issueDate = UtilDateTime.nowTimestamp();
}
double totalCost = 0.0;
double totalPrice = 0.0;