Author: jleroux
Date: Sun Nov 12 05:01:22 2006
New Revision: 473963
URL:
http://svn.apache.org/viewvc?view=rev&rev=473963Log:
A patch from Bilgin Ibryam : "Bug in room booking" (
https://issues.apache.org/jira/browse/OFBIZ-391)
Modified:
incubator/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java
Modified: incubator/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java?view=diff&rev=473963&r1=473962&r2=473963==============================================================================
--- incubator/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java (original)
+++ incubator/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java Sun Nov 12 05:01:22 2006
@@ -631,8 +631,9 @@
while (--dayCount >= 0) {
GenericValue techDataCalendarExcDay = null;
// find an existing Day exception record
- Timestamp exceptionDateStartTime = new Timestamp((long)(estimatedStartDate.getTime() + (dayCount * 86400000)));
- try { techDataCalendarExcDay = delegator.findByPrimaryKey("TechDataCalendarExcDay",
+ Timestamp exceptionDateStartTime = UtilDateTime.getDayStart(new Timestamp(estimatedStartDate.getTime()),(int)dayCount);
+ try {
+ techDataCalendarExcDay = delegator.findByPrimaryKey("TechDataCalendarExcDay",
UtilMisc.toMap("calendarId", fixedAsset.get("calendarId"), "exceptionDateStartTime", exceptionDateStartTime));
}
catch (GenericEntityException e) {