commit fec0b2f83f90180323b0a4d174506426d561dc65
parent c94bab2e11c15913b74a1f328c83a0325436cf00
Author: Marcello Stanisci <stanisci.m@gmail.com>
Date: Tue, 24 Mar 2020 17:07:14 +0100
address time-conversion issue
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -403,8 +403,8 @@ fun buildCamtString(history: SizedIterable<BankTransactionEntity>, type: Int): S
private fun constructCamtResponse(type: Int, customerId: Int, header: EbicsRequest.Header): String {
val dateRange = (header.static.orderDetails?.orderParams as EbicsRequest.StandardOrderParams).dateRange
- val (start, end) = if (dateRange != null) {
- Pair(DateTime(Instant(dateRange.start)), DateTime(Instant(dateRange.end)))
+ val (start: DateTime, end: DateTime) = if (dateRange != null) {
+ Pair(Instant(dateRange.start).toDateTime(), Instant(dateRange.end).toDateTime())
} else Pair(DateTime(0), DateTime.now())
val history = extractHistory(
customerId,