fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From my...@apache.org
Subject [fineract-cn-teller] 06/30: refactored default date range
Date Mon, 22 Jan 2018 15:32:04 GMT
This is an automated email from the ASF dual-hosted git repository.

myrle pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract-cn-teller.git

commit c851ae086bbe7a3fb748603a98cce388a2cfd5de
Author: mgeiss <mgeiss@mifos.org>
AuthorDate: Sun Jun 11 17:15:18 2017 +0200

    refactored default date range
---
 .../mifos/teller/service/internal/service/TellerManagementService.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/service/src/main/java/io/mifos/teller/service/internal/service/TellerManagementService.java
b/service/src/main/java/io/mifos/teller/service/internal/service/TellerManagementService.java
index e2b4ac3..ceb497a 100644
--- a/service/src/main/java/io/mifos/teller/service/internal/service/TellerManagementService.java
+++ b/service/src/main/java/io/mifos/teller/service/internal/service/TellerManagementService.java
@@ -16,6 +16,7 @@
 package io.mifos.teller.service.internal.service;
 
 import io.mifos.accounting.api.v1.domain.AccountEntryPage;
+import io.mifos.core.lang.DateConverter;
 import io.mifos.teller.ServiceConstants;
 import io.mifos.teller.api.v1.domain.Teller;
 import io.mifos.teller.api.v1.domain.TellerBalanceSheet;
@@ -76,7 +77,7 @@ public class TellerManagementService {
       final LocalDateTime startDate = lastModifiedOn.withHour(0).withMinute(0).withSecond(0).withNano(0);
       final LocalDateTime endDate = lastModifiedOn.withHour(23).withMinute(59).withSecond(59).withNano(999);
       final String dateRange =
-          startDate.format(DateTimeFormatter.BASIC_ISO_DATE) + ".." + endDate.format(DateTimeFormatter.BASIC_ISO_DATE);
+          DateConverter.toIsoString(startDate) + ".." + DateConverter.toIsoString(endDate);
 
       final List<TellerEntry> tellerEntries = this.fetchTellerEntries(accountIdentifier,
dateRange, 0);
 

-- 
To stop receiving notification emails like this one, please contact
myrle@apache.org.

Mime
View raw message