commit 2a512b09d94a2d1af40d19fa4b30a110b68cdaa4
parent 709e80ebad7927b8dbf35732670323e332829f9f
Author: MS <ms@taler.net>
Date: Wed, 20 May 2020 17:29:37 +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.
Diffstat:
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
@@ -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
@@ -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
}
}
}