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

Check of an invalid date returns true on Firefox (isValid()) #2651

Open
JSeifBY opened this issue May 6, 2024 · 0 comments
Open

Check of an invalid date returns true on Firefox (isValid()) #2651

JSeifBY opened this issue May 6, 2024 · 0 comments

Comments

@JSeifBY
Copy link

JSeifBY commented May 6, 2024

The Issue
isValid() not behaving the same on different browser, it returns false on Chrome / Safari as expected but returns true on Firefox.

The string that was sent to the validator has no relation with dates "JUNKIE (SWE)", see screenshot:

Chrome:
Chrome

Fiirefox:
Firefox

Expected behavior
An invalid date should always returns false on all browsers the same way.

Information

  • Day.js Version 1.10.7
  • OS: MacOS
  • Browser: Firefox 125.0.3
  • Time zone: UTC+2
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

No branches or pull requests

1 participant