This is an automated email from the ASF dual-hosted git repository.
meonkeys pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
The following commit(s) were added to refs/heads/develop by this push:
new 5bb0b3b387 FINERACT-2518: Fix to Savings account tests date
5bb0b3b387 is described below
commit 5bb0b3b387b00a753334e5f7a648eca012d9e167
Author: edk12564 <[email protected]>
AuthorDate: Mon Mar 2 19:04:01 2026 -0600
FINERACT-2518: Fix to Savings account tests date
- changed the hardcoded UTC to getLocalDateOfTenant() which is also
hardcoded to Asia/Kolkata
- this matches the region CI/CD runs in
---
.../fineract/integrationtests/SavingsAccountsExternalIdTest.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git
a/integration-tests/src/test/java/org/apache/fineract/integrationtests/SavingsAccountsExternalIdTest.java
b/integration-tests/src/test/java/org/apache/fineract/integrationtests/SavingsAccountsExternalIdTest.java
index f6161c41aa..49f164bf92 100644
---
a/integration-tests/src/test/java/org/apache/fineract/integrationtests/SavingsAccountsExternalIdTest.java
+++
b/integration-tests/src/test/java/org/apache/fineract/integrationtests/SavingsAccountsExternalIdTest.java
@@ -19,8 +19,6 @@
package org.apache.fineract.integrationtests;
import java.math.BigDecimal;
-import java.time.LocalDate;
-import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.UUID;
import
org.apache.fineract.client.models.DeleteSavingsAccountsAccountIdResponse;
@@ -33,6 +31,7 @@ import
org.apache.fineract.client.models.PutSavingsAccountsAccountIdResponse;
import org.apache.fineract.client.models.SavingsAccountData;
import org.apache.fineract.client.util.Calls;
import org.apache.fineract.integrationtests.client.IntegrationTest;
+import org.apache.fineract.integrationtests.common.Utils;
import
org.apache.fineract.integrationtests.common.savings.SavingsTestLifecycleExtension;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
@@ -48,7 +47,7 @@ public class SavingsAccountsExternalIdTest extends
IntegrationTest {
public static final String EXTERNAL_ID = UUID.randomUUID().toString();
private final String dateFormat = "dd MMMM yyyy";
private final String locale = "en";
- private final String formattedDate =
LocalDate.now(ZoneId.of("UTC")).format(DateTimeFormatter.ofPattern(dateFormat));
+ private final String formattedDate =
Utils.getLocalDateOfTenant().format(DateTimeFormatter.ofPattern(dateFormat));
@Test
@Order(1)