gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: address time-conversion issue


From: gnunet
Subject: [libeufin] branch master updated: address time-conversion issue
Date: Tue, 24 Mar 2020 17:07:37 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new fec0b2f  address time-conversion issue
fec0b2f is described below

commit fec0b2f83f90180323b0a4d174506426d561dc65
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Mar 24 17:07:14 2020 +0100

    address time-conversion issue
---
 sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 4 ++--
 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
index e3887a1..45d0c4e 100644
--- 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,

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]