Skip to content
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

Fixed EINVAL error with fs.utimesSync() due to incorrect Unix timestamp #3

Merged
merged 8 commits into from
Mar 26, 2017

Conversation

aneilbaboo
Copy link
Owner

Add @mseminatore's fix from the sepia project.

Fixes LinkedInAttic/sepia#19
Fixes LinkedInAttic/sepia#17

mseminatore and others added 8 commits March 26, 2017 14:21
As per the node.js documentation for `fs.utimes`:

> The value should be a Unix timestamp in seconds. For example,
> `Date.now()` returns milliseconds, so it should be divided by 1000
> before passing it in.

I'm not sure why this wasn't causing a problem for most people, but it
was reported by @mseminatore as a problem on Windows, on node.js
v0.12.2. In any case, this fix doesn't cause a problem on Linux, on
node.js v6.9.1, so I'm happy to make the fix.
- Added myself.
- Added @delwyn, who had made a contribution earlier.
- Added @mseminatore, who contributed recently.
For now.  Will add it back as a separate commit, because it is causing
tests to break.
@aneilbaboo aneilbaboo merged commit 832c944 into master Mar 26, 2017
aneilbaboo pushed a commit that referenced this pull request Dec 14, 2017
…de-issue

When options is already a string, don't parse it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EINVAL error in util.js#touchOnHit()
3 participants