Open trrk opened 8 months ago
Without even looking into this, I am confident that the multiplication magnifies the inherent error of representing decimal values in floating point numbers. I'm happy to accept your proposed solution as a PR, as I'm sure it'll fix the issue.
When generating an
OffsetDateTime
from ajs_sys::Date
, there are cases where the sub-millisecond components are not set to zero. This behavior is unexpected and can lead to inaccuracies in the resultingOffsetDateTime
.Steps to Reproduce
println!("{}", datetime); // => 2023-11-04 7:45:11.579000064 +00:00:00