[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/02: taler-util: fix time conversion
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/02: taler-util: fix time conversion |
Date: |
Fri, 15 Sep 2023 12:52:01 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit 1d9d63b341e825728120ec7b4eefda496ad32428
Author: Florian Dold <florian@dold.me>
AuthorDate: Fri Sep 15 12:02:11 2023 +0200
taler-util: fix time conversion
---
packages/taler-util/src/time.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/taler-util/src/time.ts b/packages/taler-util/src/time.ts
index a63f9b296..c677d52ae 100644
--- a/packages/taler-util/src/time.ts
+++ b/packages/taler-util/src/time.ts
@@ -92,7 +92,7 @@ export namespace TalerPreciseTimestamp {
export function fromMilliseconds(ms: number): TalerPreciseTimestamp {
return {
t_s: Math.floor(ms / 1000),
- off_us: Math.floor((ms - Math.floor(ms / 100) * 1000) * 1000),
+ off_us: Math.floor((ms - Math.floor(ms / 1000) * 1000) * 1000),
};
}
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.