galovics commented on code in PR #2363:
URL: https://github.com/apache/fineract/pull/2363#discussion_r897877900


##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsAccountTransaction.java:
##########
@@ -303,9 +304,11 @@ public static void updateTaxDetails(final 
Map<TaxComponent, BigDecimal> taxDetai
     }
 
     public static SavingsAccountTransaction 
copyTransaction(SavingsAccountTransaction accountTransaction) {
+        LocalDateTime date = DateUtils.getLocalDateTimeOfTenant();
+        Date createdDate = 
Date.from(date.atZone(ZoneId.systemDefault()).toInstant());

Review Comment:
   Why all this instead of just doing a DateUtils.getLocalDate()? It's much 
simpler and gets the current date properly.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to