taler-util: fix time conversion
This commit is contained in:
parent
c919c30ef3
commit
1d9d63b341
@ -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),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user