related to issue 40965 code review changes use new Date() instead of Calendar
authorSandra Huguet <sandra.huguet@openbravo.com>
Wed, 12 Jun 2019 10:00:33 +0200
changeset 36130 344027159c1c
parent 36129 07fd428fb5a5
child 36131 6d9b65973b42
related to issue 40965 code review changes use new Date() instead of Calendar
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java	Wed Jun 12 09:45:27 2019 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_PaymentProcess.java	Wed Jun 12 10:00:33 2019 +0200
@@ -21,7 +21,6 @@
 import java.math.BigDecimal;
 import java.math.RoundingMode;
 import java.util.ArrayList;
-import java.util.Calendar;
 import java.util.Collections;
 import java.util.Comparator;
 import java.util.Date;
@@ -519,8 +518,7 @@
         // ***********************
       } else if (strAction.equals("RV")) {
         FIN_Payment reversedPayment = (FIN_Payment) DalUtil.copy(payment, false);
-        final Calendar calendar = Calendar.getInstance();
-        final Date now = calendar.getTime();
+        final Date now = new Date();
         updateAuditInformation(reversedPayment, now);
         OBContext.setAdminMode();
         try {