Skip to content

fs: preserve negative utimes timestamps#64627

Open
GiHoon1123 wants to merge 1 commit into
nodejs:mainfrom
GiHoon1123:fix/fs-negative-utimes
Open

fs: preserve negative utimes timestamps#64627
GiHoon1123 wants to merge 1 commit into
nodejs:mainfrom
GiHoon1123:fix/fs-negative-utimes

Conversation

@GiHoon1123

Copy link
Copy Markdown

toUnixTimestamp() converted negative numbers to the current time, while negative strings and Dates were handled correctly.

Keep numeric timestamps unchanged and add coverage for negative values.

Fixes: #64597

@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fs: incorrect handling of numeric times from before the unix epoch

2 participants