[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: fix time conversion
From: |
gnunet |
Subject: |
[libeufin] branch master updated: fix time conversion |
Date: |
Tue, 24 Mar 2020 17:34:41 +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 2263348 fix time conversion
2263348 is described below
commit 226334882e42cf8e086285892d3c51d7bd9d7a31
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Mar 24 17:34:13 2020 +0100
fix time conversion
from "gregorian calendar" to "joda datetime"
---
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 45d0c4e..04e9bd8 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: DateTime, end: DateTime) = if (dateRange != null) {
- Pair(Instant(dateRange.start).toDateTime(),
Instant(dateRange.end).toDateTime())
+ val (start: org.joda.time.DateTime, end: org.joda.time.DateTime) = if
(dateRange != null) {
+ Pair(DateTime(dateRange.start.toGregorianCalendar().time),
DateTime(dateRange.end.toGregorianCalendar().time))
} else Pair(DateTime(0), DateTime.now())
val history = extractHistory(
customerId,
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: fix time conversion,
gnunet <=