gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: Quick fix on CAMT's message ID (#6269)


From: gnunet
Subject: [libeufin] branch master updated: Quick fix on CAMT's message ID (#6269).
Date: Fri, 29 May 2020 13:25:59 +0200

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

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 01c8396  Quick fix on CAMT's message ID (#6269).
01c8396 is described below

commit 01c8396ceb1b96d23cc232d4384f9ede2ce85876
Author: MS <ms@taler.net>
AuthorDate: Fri May 29 13:25:04 2020 +0200

    Quick fix on CAMT's message ID (#6269).
---
 .../src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt   | 6 ++++--
 1 file changed, 4 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 379c110..30de622 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -164,7 +164,9 @@ fun buildCamtString(type: Int, history: 
MutableList<RawPayment>): MutableList<St
     val ret = mutableListOf<String>()
     history.forEach {
         val dashedDate = expectNonNull(it.date)
-        val zonedDateTime = LocalDateTime.now().toZonedString()
+        val now = LocalDateTime.now()
+        val zonedDateTime = now.toZonedString()
+
         ret.add(
             constructXml(indent = true) {
                 root("Document") {
@@ -174,7 +176,7 @@ fun buildCamtString(type: Int, history: 
MutableList<RawPayment>): MutableList<St
                     element("BkToCstmrStmt") {
                         element("GrpHdr") {
                             element("MsgId") {
-                                text("0")
+                                text("sandbox-${now.millis()}")
                             }
                             element("CreDtTm") {
                                 text(zonedDateTime)

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



reply via email to

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