diff --git a/applications/accounting/src/org/ofbiz/accounting/payment/PaymentWorker.java b/applications/accounting/src/org/ofbiz/accounting/payment/PaymentWorker.java index 9206b91245..22b416544c 100644 --- a/applications/accounting/src/org/ofbiz/accounting/payment/PaymentWorker.java +++ b/applications/accounting/src/org/ofbiz/accounting/payment/PaymentWorker.java @@ -29,7 +29,6 @@ import javolution.util.FastList; import javolution.util.FastMap; import org.ofbiz.base.util.Debug; -import org.ofbiz.base.util.UtilDateTime; import org.ofbiz.base.util.UtilFormatOut; import org.ofbiz.base.util.UtilMisc; import org.ofbiz.base.util.UtilNumber; @@ -162,7 +161,7 @@ public class PaymentWorker { try { purpose = EntityQuery.use(delegator).from("PartyContactWithPurpose") .where("partyId", partyId, "contactMechPurposeTypeId", "PAYMENT_LOCATION") - .orderBy("-purposeFromDate").filterByDate(UtilDateTime.nowTimestamp(), "contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate") + .orderBy("-purposeFromDate").filterByDate("contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate") .queryFirst(); } catch (GenericEntityException e) { Debug.logError(e, "Trouble getting PartyContactWithPurpose view entity list", module); diff --git a/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java b/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java index 19789ab67a..22db4a1634 100644 --- a/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java +++ b/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java @@ -821,7 +821,7 @@ public class ContactMechServices { try { tempVal = EntityQuery.use(delegator).from("PartyContactWithPurpose") .where("partyId", partyId, "contactMechId", contactMechId, "contactMechPurposeTypeId", contactMechPurposeTypeId) - .filterByDate(UtilDateTime.nowTimestamp(), "contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate") + .filterByDate("contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate") .queryFirst(); } catch (GenericEntityException e) { Debug.logWarning(e.getMessage(), module); @@ -881,7 +881,7 @@ public class ContactMechServices { try { tempVal = EntityQuery.use(delegator).from("PartyContactWithPurpose") .where("partyId", partyId, "contactMechId", contactMechId, "contactMechPurposeTypeId", contactMechPurposeTypeId) - .filterByDate(UtilDateTime.nowTimestamp(), "contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate") + .filterByDate("contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate") .queryFirst(); } catch (GenericEntityException e) { Debug.logWarning(e.getMessage(), module); diff --git a/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleCheckoutHelper.java b/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleCheckoutHelper.java index 1782bbf92c..e547c85101 100644 --- a/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleCheckoutHelper.java +++ b/specialpurpose/googlecheckout/src/org/ofbiz/googlecheckout/GoogleCheckoutHelper.java @@ -29,7 +29,6 @@ import javolution.util.FastMap; import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.GeneralException; -import org.ofbiz.base.util.UtilDateTime; import org.ofbiz.base.util.UtilGenerics; import org.ofbiz.base.util.UtilMisc; import org.ofbiz.base.util.UtilValidate; @@ -560,7 +559,7 @@ public class GoogleCheckoutHelper { // check to make sure the purpose doesn't already exist List values = EntityQuery.use(delegator).from("PartyContactWithPurpose") .where("partyId", partyId, "contactMechId", contactMechId, "contactMechPurposeTypeId", contactMechPurposeTypeId) - .filterByDate(UtilDateTime.nowTimestamp(), "contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate") + .filterByDate("contactFromDate", "contactThruDate", "purposeFromDate", "purposeThruDate") .queryList(); if (UtilValidate.isEmpty(values)) {