gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: make remaining timestamping use UTC


From: gnunet
Subject: [libeufin] branch master updated: make remaining timestamping use UTC
Date: Wed, 01 Sep 2021 12:31:45 +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 a06dd10  make remaining timestamping use UTC
a06dd10 is described below

commit a06dd1032e28f6d6ad7f8de1e0b90edfc883d18e
Author: MS <ms@taler.net>
AuthorDate: Wed Sep 1 10:31:39 2021 +0000

    make remaining timestamping use UTC
---
 .../kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt     |  4 ++--
 sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt        | 12 ++++++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git 
a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
index 006d3cb..963c815 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt
@@ -694,7 +694,7 @@ private fun handleCct(paymentRequest: String) {
                 subject = parseResult.subject
                 amount = parseResult.amount.toString()
                 currency = parseResult.currency
-                date = Instant.now().toEpochMilli()
+                date = getUTCnow().toInstant().toEpochMilli()
                 pmtInfId = parseResult.pmtInfId
                 accountServicerReference = "sandboxref-${getRandomString(16)}"
                 direction = "DBIT"
@@ -714,7 +714,7 @@ private fun handleCct(paymentRequest: String) {
                     subject = parseResult.subject
                     amount = parseResult.amount.toString()
                     currency = parseResult.currency
-                    date = Instant.now().toEpochMilli()
+                    date = getUTCnow().toInstant().toEpochMilli()
                     pmtInfId = parseResult.pmtInfId
                     accountServicerReference = 
"sandboxref-${getRandomString(16)}"
                     direction = "CRDT"
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt 
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 6aaebc2..cd043a7 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -234,7 +234,7 @@ class MakeTransaction : CliktCommand("Wire-transfer money 
between Sandbox bank a
                 subject = subjectArg
                 amount = amountObj.amount.toString()
                 currency = amountObj.currency
-                date = Instant.now().toEpochMilli()
+                date = getUTCnow().toInstant().toEpochMilli()
                 accountServicerReference = "sandbox-$randId"
                 account = debit
                 direction = "DBIT"
@@ -249,7 +249,7 @@ class MakeTransaction : CliktCommand("Wire-transfer money 
between Sandbox bank a
                 subject = subjectArg
                 amount = amountObj.amount.toString()
                 currency = amountObj.currency
-                date = Instant.now().toEpochMilli()
+                date = getUTCnow().toInstant().toEpochMilli()
                 accountServicerReference = "sandbox-$randId"
                 account = credit
                 direction = "CRDT"
@@ -657,7 +657,7 @@ fun serverMain(dbName: String, port: Int) {
                         subject = body.subject
                         amount = body.amount
                         currency = account.currency
-                        date = Instant.now().toEpochMilli()
+                        date = getUTCnow().toInstant().toEpochMilli()
                         accountServicerReference = "sandbox-$randId"
                         this.account = account
                         direction = "CRDT"
@@ -687,7 +687,7 @@ fun serverMain(dbName: String, port: Int) {
                         subject = body.subject
                         amount = body.amount
                         currency = body.currency
-                        date = Instant.now().toEpochMilli()
+                        date = getUTCnow().toInstant().toEpochMilli()
                         accountServicerReference = "sandbox-$randId"
                         account = getBankAccountFromIban(localIban)
                         direction = body.direction
@@ -803,7 +803,7 @@ fun serverMain(dbName: String, port: Int) {
                             subject = "sample transaction 
$transactionReferenceCrdt"
                             this.amount = amount.toString()
                             currency = account.currency
-                            date = Instant.now().toEpochMilli()
+                            date = getUTCnow().toInstant().toEpochMilli()
                             accountServicerReference = transactionReferenceCrdt
                             this.account = account
                             direction = "CRDT"
@@ -823,7 +823,7 @@ fun serverMain(dbName: String, port: Int) {
                             subject = "sample transaction 
$transactionReferenceDbit"
                             this.amount = amount.toString()
                             currency = account.currency
-                            date = Instant.now().toEpochMilli()
+                            date = getUTCnow().toInstant().toEpochMilli()
                             accountServicerReference = transactionReferenceDbit
                             this.account = account
                             direction = "DBIT"

-- 
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]