libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 17aabee238c639435cc0f507095e05691ef26eaf
parent 58978d661afe089ef4632d16c81ffce3059f0f07
Author: Florian Dold <florian.dold@gmail.com>
Date:   Wed,  3 Jun 2020 12:00:04 +0530

get rid of joda time usages

Diffstat:
Mnexus/src/main/kotlin/tech/libeufin/nexus/taler.kt | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt @@ -18,7 +18,6 @@ import org.jetbrains.exposed.dao.IdTable import org.jetbrains.exposed.sql.* import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq import org.jetbrains.exposed.sql.transactions.transaction -import org.joda.time.DateTime import tech.libeufin.util.* import java.time.LocalDateTime import java.time.ZoneId @@ -272,7 +271,7 @@ suspend fun talerTransfer(call: ApplicationCall): Unit { counterpartIban = creditorObj.iban counterpartName = creditorObj.name bankAccount = exchangeBankAccount - bookingDate = DateTime.now().millis + bookingDate = System.currentTimeMillis() status = "BOOK" } } else null @@ -296,7 +295,7 @@ suspend fun talerTransfer(call: ApplicationCall): Unit { * Normally should point to the next round where the background * routine will send new PAIN.001 data to the bank; work in progress.. */ - timestamp = GnunetTimestamp(DateTime.now().millis), + timestamp = GnunetTimestamp(System.currentTimeMillis()), row_id = opaque_row_id ) ), @@ -324,7 +323,8 @@ suspend fun talerAddIncoming(call: ApplicationCall): Unit { TalerAddIncomingResponse( timestamp = GnunetTimestamp( // warning: this value might need to come from a real last-seen payment. - LocalDateTime.now().atZone(ZoneId.systemDefault()).toEpochSecond() + // FIXME(dold): I don't understand the comment above ^^. + System.currentTimeMillis() ), row_id = myLastSeenRawPayment )