[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 07/07: floor when moving from ms to secs
From: |
gnunet |
Subject: |
[taler-wallet-core] 07/07: floor when moving from ms to secs |
Date: |
Thu, 09 Nov 2023 14:01:52 +0100 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit 1024665001060b8a33378ff45f12426a1b152f25
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Nov 9 10:01:36 2023 -0300
floor when moving from ms to secs
---
packages/merchant-backoffice-ui/src/hooks/backend.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/merchant-backoffice-ui/src/hooks/backend.ts
b/packages/merchant-backoffice-ui/src/hooks/backend.ts
index 054c074f1..8d99546a8 100644
--- a/packages/merchant-backoffice-ui/src/hooks/backend.ts
+++ b/packages/merchant-backoffice-ui/src/hooks/backend.ts
@@ -332,8 +332,8 @@ export function useBackendInstanceRequest():
useBackendInstanceRequestType {
const [endpoint, paid, refunded, wired, searchDate, delta] = args
const date_s =
delta && delta < 0 && searchDate
- ? (searchDate.getTime() / 1000) + 1
- : searchDate !== undefined ? (searchDate.getTime() / 1000) :
undefined;
+ ? Math.floor(searchDate.getTime() / 1000) + 1
+ : searchDate !== undefined ? Math.floor(searchDate.getTime() / 1000)
: undefined;
const params: any = {};
if (paid !== undefined) params.paid = paid;
if (delta !== undefined) params.delta = delta;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-wallet-core] branch master updated (98c5e45de -> 102466500), gnunet, 2023/11/09
- [taler-wallet-core] 05/07: fix: not evicting cache because of typo, gnunet, 2023/11/09
- [taler-wallet-core] 04/07: add fake url for test, gnunet, 2023/11/09
- [taler-wallet-core] 07/07: floor when moving from ms to secs,
gnunet <=
- [taler-wallet-core] 01/07: update test for new auth api, gnunet, 2023/11/09
- [taler-wallet-core] 02/07: update test for longest currency name, gnunet, 2023/11/09
- [taler-wallet-core] 06/07: update test for new response from merchant backend, gnunet, 2023/11/09
- [taler-wallet-core] 03/07: update test for "limit=0" optimization, gnunet, 2023/11/09