aboutsummaryrefslogtreecommitdiff
path: root/docs/src
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2020-03-24 21:13:14 +0100
committerJameson Nash <vtjnash@gmail.com>2020-11-28 10:48:18 -0500
commit8d5af5e70e7e894a4c93e752add75bac2df12ba8 (patch)
tree70bddd8f10e9c3a50f78289fab31a137bc353be6 /docs/src
parente823d729abce0111672571289e0fbe0d0dc0f26f (diff)
downloadlibuv-8d5af5e70e7e894a4c93e752add75bac2df12ba8.tar.gz
libuv-8d5af5e70e7e894a4c93e752add75bac2df12ba8.zip
fs: fix utime/futime timestamp rounding errors
`uv_fs_utime()` and `uv_fs_futime()` receive the timestamp as a `double` and then convert it to `struct timeval` or `struct timespec` where necessary but the calculation for the sub-second part exhibited rounding errors for dates in the deep past or the far-flung future, causing the timestamps to be off by sometimes over half a second on unix, or to be reinterpreted as unsigned and end up off by more than just sign but many also decades. Fixes: https://github.com/nodejs/node/issues/32369 (partially) PR-URL: https://github.com/libuv/libuv/pull/2747 Co-authored-by: Jameson Nash <vtjnash@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'docs/src')
0 files changed, 0 insertions, 0 deletions