commit e938e4e6d03b2478ffc218eb13737cf29838b454
parent 8f482683151d429349c8c4692cc98740b4669552
Author: Florian Dold <florian.dold@gmail.com>
Date: Mon, 22 Jun 2020 19:29:57 +0530
round timestamp for exchnge
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
@@ -513,7 +513,8 @@ private suspend fun historyIncoming(call: ApplicationCall): Unit {
orderedPayments.subList(0, min(abs(delta), orderedPayments.size)).forEach {
history.incoming_transactions.add(
TalerIncomingBankTransaction(
- date = GnunetTimestamp(it.timestampMs),
+ // Rounded timestamp
+ date = GnunetTimestamp((it.timestampMs / 1000) * 1000),
row_id = it.id.value,
amount = "${it.payment.currency}:${it.payment.amount}",
reserve_pub = it.reservePublicKey,