oven-sh/bun

fs.utimesSync sets the time in seconds (so it seems)

已关闭

#6,804 创建于 2023年10月30日

 (2 条评论) (0 个反应) (1 位负责人)Rust (4,486 个派生)batch import
buggood first issuenode.js

仓库指标

星标
 (90,348 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

What version of Bun is running?

1.0.7+b0393fba6200d8573f3433fb0af258a0e33ac157

What platform is your computer?

Darwin 21.6.0 x86_64 i386

What steps can reproduce the bug?

fs.utimesSync(pathname, atime, mtime)
console.log(fs.statSync(pathname).mtime.valueOf())

result always ends with "000" with no milliseconds

What is the expected behavior?

mtime should be set precisely

What do you see instead?

tested it also with node v18.17.1 and i get the correct results

Additional information

No response

贡献者指南