gnunet-svn
[Top][All Lists]
Advanced

[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:05:51 +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 43e7d55  migrating to java.time
43e7d55 is described below

commit 43e7d5558e36baac7c74dffce893360d41bf4410
Author: MS <address@hidden>
AuthorDate: Mon May 25 18:05:47 2020 +0200

    migrating to java.time
---
 nexus/src/test/kotlin/DateTest.kt | 16 ----------------
 sandbox/src/test/kotlin/DBTest.kt |  5 ++---
 2 files changed, 2 insertions(+), 19 deletions(-)

diff --git a/nexus/src/test/kotlin/DateTest.kt 
b/nexus/src/test/kotlin/DateTest.kt
deleted file mode 100644
index 1c9285b..0000000
--- a/nexus/src/test/kotlin/DateTest.kt
+++ /dev/null
@@ -1,16 +0,0 @@
-package tech.libeufin.nexus
-
-import org.joda.time.DateTime
-import org.junit.Test
-import tech.libeufin.util.toDashedDate
-import tech.libeufin.util.parseDashedDate
-
-class DateTest {
-    @Test
-    fun dashedDateParsing() {
-        val parseddate = parseDashedDate("2020-04-30")
-        println("Parsed value: " + parseddate.toLocalDate())
-        println("To dashed value: " + parseddate.toDashedDate())
-        println("System now(): " + DateTime.now().toLocalDate())
-    }
-}
\ No newline at end of file
diff --git a/sandbox/src/test/kotlin/DBTest.kt 
b/sandbox/src/test/kotlin/DBTest.kt
index fba5715..61eb9c9 100644
--- a/sandbox/src/test/kotlin/DBTest.kt
+++ b/sandbox/src/test/kotlin/DBTest.kt
@@ -4,13 +4,12 @@ import org.jetbrains.exposed.sql.StdOutSqlLogger
 import org.jetbrains.exposed.sql.addLogger
 import org.jetbrains.exposed.sql.transactions.TransactionManager
 import org.jetbrains.exposed.sql.transactions.transaction
-import org.joda.time.DateTime
 import org.junit.Test
 import tech.libeufin.sandbox.PaymentEntity
 import tech.libeufin.sandbox.PaymentsTable
 import tech.libeufin.util.parseDashedDate
 import java.sql.Connection
-
+import java.time.Instant
 
 class DBTest {
     @Test
@@ -29,7 +28,7 @@ class DBTest {
                 debitorIban = "spends"
                 subject = "deal"
                 amount = "EUR:1"
-                date = DateTime.now().millis
+                date = Instant.now().toEpochMilli()
             }
         }
         val result = transaction {

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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