From 02ad9bde3e671a3566d68a6b968efe288e67d910 Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Thu, 17 Nov 2022 13:53:48 -0300 Subject: Adapt to new seconds based time format --- .../src/main/java/net/taler/wallet/peer/TransactionPeerPullCredit.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullCredit.kt') diff --git a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullCredit.kt b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullCredit.kt index 3179024..82a16be 100644 --- a/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullCredit.kt +++ b/wallet/src/main/java/net/taler/wallet/peer/TransactionPeerPullCredit.kt @@ -81,13 +81,13 @@ fun ColumnScope.TransactionPeerPullCreditComposable(t: TransactionPeerPullCredit fun TransactionPeerPullCreditPreview() { val t = TransactionPeerPullCredit( transactionId = "transactionId", - timestamp = Timestamp(System.currentTimeMillis() - 360 * 60 * 1000), + timestamp = Timestamp.fromMillis(System.currentTimeMillis() - 360 * 60 * 1000), pending = true, exchangeBaseUrl = "https://exchange.example.org/", amountRaw = Amount.fromDouble("TESTKUDOS", 42.23), amountEffective = Amount.fromDouble("TESTKUDOS", 42.1337), info = PeerInfoShort( - expiration = Timestamp(System.currentTimeMillis() + 60 * 60 * 1000), + expiration = Timestamp.fromMillis(System.currentTimeMillis() + 60 * 60 * 1000), summary = "test invoice", ), talerUri = "https://exchange.example.org/peer/pull/credit", -- cgit v1.2.3