Commit 8176a6b
fix: convert to BigInt before multiplying to avoid nanosecond precision loss
Epoch milliseconds multiplied by 1,000,000 as a Number exceed
Number.MAX_SAFE_INTEGER (9,007,199,254,740,991), causing IEEE 754
floating-point precision loss before the BigInt conversion.
The fix converts to BigInt first, then multiplies — matching the
existing correct pattern in convertDateToNanoseconds().
Fixes #3292
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2366b21 commit 8176a6b
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| |||
0 commit comments