gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: get rid of joda time usages


From: gnunet
Subject: [libeufin] branch master updated: get rid of joda time usages
Date: Wed, 03 Jun 2020 08:30:10 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 17aabee  get rid of joda time usages
17aabee is described below

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

    get rid of joda time usages
---
 nexus/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
index 2ba1751..a1a4b00 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
                 )

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]