taler-util: fix time conversion

This commit is contained in:
Florian Dold 2023-09-15 12:02:11 +02:00
parent c919c30ef3
commit 1d9d63b341
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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),
};
}
}