diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-06-03 12:00:04 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-06-03 12:00:04 +0530 |
commit | 17aabee238c639435cc0f507095e05691ef26eaf (patch) | |
tree | 9d9109e20a69d02a37729e14acfc803d27b60517 /nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt | |
parent | 58978d661afe089ef4632d16c81ffce3059f0f07 (diff) | |
download | libeufin-17aabee238c639435cc0f507095e05691ef26eaf.tar.gz libeufin-17aabee238c639435cc0f507095e05691ef26eaf.tar.bz2 libeufin-17aabee238c639435cc0f507095e05691ef26eaf.zip |
get rid of joda time usages
Diffstat (limited to 'nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt')
-rw-r--r-- | nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt | 8 |
1 files 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 index 2ba1751d..a1a4b00d 100644 --- 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 ) |