gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: Booking time.


From: gnunet
Subject: [libeufin] branch master updated: Booking time.
Date: Wed, 20 May 2020 17:33:15 +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 2a512b0  Booking time.
2a512b0 is described below

commit 2a512b09d94a2d1af40d19fa4b30a110b68cdaa4
Author: MS <address@hidden>
AuthorDate: Wed May 20 17:29:37 2020 +0200

    Booking time.
    
    Since the JSON API offered by the Nexus does NOT
    provide a way to specify the minor units of time
    (hours, minutes, seconds, ...) when asking for
    payments, the sandbox now (consistently) stores
    payments discarding those same minor units.
---
 nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt                    | 1 +
 .../src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt    | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index 33ed45a..933cb17 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -183,6 +183,7 @@ class Serve : CliktCommand("Run nexus HTTP server") {
     }
 }
 
+
 class Superuser : CliktCommand("Add superuser or change pw") {
     private val username by argument()
     private val password by option().prompt(requireConfirmation = true, 
hideInput = true)
diff --git 
a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
index eadde89..3fba96f 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -461,7 +461,10 @@ private fun handleCct(paymentRequest: String) {
             this.debitorIban = debitorIban
             this.subject = subject
             this.amount = amount
-            this.date = DateTime.now().millis
+            /** For now, the date discards any
+             * information about hours and minor units of time.
+             */
+            this.date = parseDashedDate(DateTime.now().toDashedDate()).millis
         }
     }
 }

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



reply via email to

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