[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: make sure ReqdExctnDt has two digits m
From: |
gnunet |
Subject: |
[libeufin] branch master updated: make sure ReqdExctnDt has two digits month and day. |
Date: |
Thu, 12 Mar 2020 15:01:00 +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 a257e22 make sure ReqdExctnDt has two digits month and day.
a257e22 is described below
commit a257e22ef11443967453de884df12e9b818f3054
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Mar 12 15:00:25 2020 +0100
make sure ReqdExctnDt has two digits month and day.
---
nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt | 2 +-
nexus/src/test/kotlin/PainGeneration.kt | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index 68a865d..ff462e8 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -220,7 +220,7 @@ fun createPain001document(pain001Entity: Pain001Entity):
String {
val dateMillis = transaction {
pain001Entity.date
}
- text(DateTime(dateMillis).toString("Y-M-d"))
+ text(DateTime(dateMillis).toString("Y-MM-dd"))
}
element("Dbtr/Nm") {
text(pain001Entity.debtorAccount)
diff --git a/nexus/src/test/kotlin/PainGeneration.kt
b/nexus/src/test/kotlin/PainGeneration.kt
index 3143099..6b25cfb 100644
--- a/nexus/src/test/kotlin/PainGeneration.kt
+++ b/nexus/src/test/kotlin/PainGeneration.kt
@@ -55,7 +55,7 @@ class PainTest {
paymentId = 1
msgId = 1
endToEndId = 1
- date = 1
+ date = DateTime.now().millis
}
val s = createPain001document(pain001Entity)
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: make sure ReqdExctnDt has two digits month and day.,
gnunet <=