From cd8f76db61f4a1ab1a8a8a4d29b2f3e863b59854 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 26 May 2023 12:19:32 +0200 Subject: taler-util,wallet-core: implement TalerPreciseTimestamp Fixes #7703 --- .../taler-wallet-webextension/src/wallet/Transaction.stories.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx') diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx index b2a8de014..c2bceb067 100644 --- a/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Transaction.stories.tsx @@ -23,6 +23,7 @@ import { AbsoluteTime, PaymentStatus, RefreshReason, + TalerPreciseTimestamp, TalerProtocolTimestamp, TransactionCommon, TransactionDeposit, @@ -245,7 +246,7 @@ export const WithdrawFiveMinutesAgo = tests.createExample( () => ({ transaction: { ...exampleData.withdraw, - timestamp: TalerProtocolTimestamp.fromSeconds( + timestamp: TalerPreciseTimestamp.fromSeconds( new Date().getTime() / 1000 - 60 * 5, ), }, @@ -257,7 +258,7 @@ export const WithdrawFiveMinutesAgoAndPending = tests.createExample( () => ({ transaction: { ...exampleData.withdraw, - timestamp: TalerProtocolTimestamp.fromSeconds( + timestamp: TalerPreciseTimestamp.fromSeconds( new Date().getTime() / 1000 - 60 * 5, ), txState: { -- cgit v1.2.3