commit a06dd1032e28f6d6ad7f8de1e0b90edfc883d18e
parent 570cd2cd8bfbaf946756ac91ac7aaee73818b487
Author: MS <ms@taler.net>
Date: Wed, 1 Sep 2021 10:31:39 +0000
make remaining timestamping use UTC
Diffstat:
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
@@ -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
@@ -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"