[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: migrating to java.time
From: |
gnunet |
Subject: |
[libeufin] branch master updated: migrating to java.time |
Date: |
Mon, 25 May 2020 18:04:09 +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 157f800 migrating to java.time
157f800 is described below
commit 157f800948e697d796fd4c79cdb4b53a62857750
Author: MS <address@hidden>
AuthorDate: Mon May 25 18:04:05 2020 +0200
migrating to java.time
---
nexus/src/main/kotlin/tech/libeufin/nexus/Helpers.kt | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Helpers.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Helpers.kt
index 6766d30..f648319 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Helpers.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Helpers.kt
@@ -6,7 +6,6 @@ import io.ktor.request.ApplicationRequest
import org.jetbrains.exposed.sql.SortOrder
import org.jetbrains.exposed.sql.and
import org.jetbrains.exposed.sql.transactions.transaction
-import org.joda.time.DateTime
import org.w3c.dom.Document
import tech.libeufin.util.*
import tech.libeufin.util.ebics_h004.EbicsTypes
@@ -306,7 +305,7 @@ fun createPain001document(paymentData:
PreparedPaymentEntity): String {
val dateMillis = transaction {
paymentData.preparationDate
}
- text(DateTime(dateMillis).toString("Y-MM-dd"))
+ text(importDateFromMillis(dateMillis).toDashedDate())
}
element("Dbtr/Nm") {
text(debitorBankAccountLabel)
@@ -392,7 +391,7 @@ fun addPreparedPayment(paymentData: Pain001Data,
debitorAccount: NexusBankAccoun
creditorName = paymentData.creditorName
creditorBic = paymentData.creditorBic
creditorIban = paymentData.creditorIban
- preparationDate = DateTime.now().millis
+ preparationDate = Instant.now().toEpochMilli()
paymentId = randomId
endToEndId = randomId
}
--
To stop receiving notification emails like this one, please contact
address@hidden.