-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fs.utimes
doesn't support number
or string
on Windows
#33227
Comments
fs.utimes
doesn't support number
on Windowsfs.utimes
doesn't support number
or string
on Windows
No, but you're passing numbers that are probably out of range for the underlying file system.
|
Oh! Hah, would you look at that 😅 That's not mentioned in the docs, although I guess most people calling these APIs know that already? Would it be possible for |
The documentation could be clearer on the units used, I agree. Do you want to send a PR for that?
I don't think so. There's no real way to know what the supported range is until you try it. |
@bnoordhuis quick try (or as quick as GitHub's laggy web editor allows) here: #33230 |
Closed by above PR |
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior?
It should work same as Linux and Mac
What do you see instead?
That's from this CI run, where the same test passes on both Linux and Mac: https://github.com/facebook/jest/runs/641141754
Additional information
According to the docs,
utimes
can takenumber | string | Date
: https://nodejs.org/api/fs.html#fs_fs_utimes_path_atime_mtime_callback. Seems like Windows only supportsDate
?This is the same as #5561.
The text was updated successfully, but these errors were encountered: