We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
new Date(NaN)
Describe the bug When new Date(NaN) is called, the date is being set to the default date, instead to an invalid date.
To Reproduce
This JavaScript code reproduces the issue:
new Date(NaN).toString()
The code returns "Thu Jan 01 1970 01:00:00 GMT+01:00"
"Thu Jan 01 1970 01:00:00 GMT+01:00"
Expected behavior The code should return "Invalid Date"
"Invalid Date"
Build environment:
The text was updated successfully, but these errors were encountered:
NaN
new Date()
Successfully merging a pull request may close this issue.
Describe the bug
When
new Date(NaN)
is called, the date is being set to the default date, instead to an invalid date.To Reproduce
This JavaScript code reproduces the issue:
The code returns
"Thu Jan 01 1970 01:00:00 GMT+01:00"
Expected behavior
The code should return
"Invalid Date"
Build environment:
The text was updated successfully, but these errors were encountered: