gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: switching from datetime() to long() fo


From: gnunet
Subject: [libeufin] branch master updated: switching from datetime() to long() for dates.
Date: Fri, 24 Jan 2020 16:59:11 +0100

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

marcello pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new eec21fe  switching from datetime() to long() for dates.
eec21fe is described below

commit eec21fe041cedd1bf1ef23e3ed9f5181d5baa965
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Jan 24 16:58:46 2020 +0100

    switching from datetime() to long() for dates.
---
 sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt  |  4 ++--
 .../src/main/kotlin/tech/libeufin/sandbox/Main.kt    |  4 ++--
 sandbox/src/test/kotlin/DbTest.kt                    | 20 ++++++++++----------
 3 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
index 91dd561..c6a580d 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/DB.kt
@@ -159,8 +159,8 @@ object BankTransactionsTable : IntIdTableWithAmount() {
     val counterpart = varchar("counterpart", MAX_ID_LENGTH)
     val amount = amount("amount")
     val subject = varchar("subject", MAX_SUBJECT_LENGTH)
-    val operationDate = datetime("operationDate")
-    val valueDate = datetime("valueDate")
+    val operationDate = long("operationDate")
+    val valueDate = long("valueDate")
     val localCustomer = reference("localCustomer", BankCustomersTable)
 }
 
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index bbfc9f5..cd60b50 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -163,8 +163,8 @@ fun sampleData() {
                 counterpart = "IBAN"
                 amount = i
                 subject = "transaction $i"
-                operationDate = DateTime.now()
-                valueDate = DateTime.now()
+                operationDate = DateTime.now().millis
+                valueDate = DateTime.now().millis
                 localCustomer = customerEntity
             }
         }
diff --git a/sandbox/src/test/kotlin/DbTest.kt 
b/sandbox/src/test/kotlin/DbTest.kt
index 46394c0..6f15ea0 100644
--- a/sandbox/src/test/kotlin/DbTest.kt
+++ b/sandbox/src/test/kotlin/DbTest.kt
@@ -56,8 +56,8 @@ class DbTest {
                 amount = Amount("1")
                 counterpart = "IBAN"
                 subject = "Salary"
-                operationDate = DateTime.now()
-                valueDate = DateTime.now()
+                operationDate = DateTime.now().millis
+                valueDate = DateTime.now().millis
                 localCustomer = BankCustomerEntity.new {
                     customerName = "employee"
                 }
@@ -67,8 +67,8 @@ class DbTest {
                 amount = Amount("1.11")
                 counterpart = "IBAN"
                 subject = "Salary"
-                operationDate = DateTime.now()
-                valueDate = DateTime.now()
+                operationDate = DateTime.now().millis
+                valueDate = DateTime.now().millis
                 localCustomer = BankCustomerEntity.new {
                     customerName = "employee"
                 }
@@ -78,8 +78,8 @@ class DbTest {
                 amount = Amount("1.110000000000") // BigDecimal does not crop 
the trailing zeros
                 counterpart = "IBAN"
                 subject = "Salary"
-                operationDate = DateTime.now()
-                valueDate = DateTime.now()
+                operationDate = DateTime.now().millis
+                valueDate = DateTime.now().millis
                 localCustomer = BankCustomerEntity.new {
                     customerName = "employee"
                 }
@@ -95,8 +95,8 @@ class DbTest {
                     amount = Amount("1.10001")
                     counterpart = "IBAN"
                     subject = "Salary"
-                    operationDate = DateTime.now()
-                    valueDate = DateTime.now()
+                    operationDate = DateTime.now().millis
+                    valueDate = DateTime.now().millis
                     localCustomer = BankCustomerEntity.new {
                         customerName = "employee"
                     }
@@ -118,8 +118,8 @@ class DbTest {
                     amount = Amount("1")
                     counterpart = "IBAN"
                     subject = "Salary"
-                    operationDate = DateTime.now()
-                    valueDate = DateTime.now()
+                    operationDate = DateTime.now().millis
+                    valueDate = DateTime.now().millis
                     localCustomer = BankCustomerEntity.new {
                         customerName = "employee"
                     }

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



reply via email to

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