commit 4ed6e818da414ad64835ffa7f233248b6c6c65c5 parent 6289183866c1d7e78dc6f156ab3689a8d65d74e0 Author: Florian Dold <florian@dold.me> Date: Wed, 15 Jul 2026 15:07:55 +0200 fix math in TalerPreciseTimestamp.fromSeconds Diffstat:
| M | 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 @@ -85,7 +85,7 @@ export namespace TalerPreciseTimestamp { export function fromSeconds(s: number): TalerPreciseTimestamp { return { t_s: Math.floor(s), - off_us: Math.floor((s - Math.floor(s)) / 1000 / 1000), + off_us: Math.floor((s - Math.floor(s)) * 1e6), }; }