-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
isDate
validation is broken after upgrading to validator v13.11.0
#2256
Comments
Looks like the To keep the same behaviour as the previous version, validator.js/src/lib/isDate.js Line 68 in f074abd
|
Thanks, @brunoabude! Just submitted a pull request that would solve the timezone issues as you suggested. |
Can confirm this was breaking for us too. It was tricky to debug cuz it worked in our CI just fine but was failing locally. Rolling back to |
I have the same problem on macOS, seems to work on other platforms though. reverted to |
When are we going to have next release? |
@Achilles718611 Also wondering this, I just downgraded to 13.9.0 and everything is working for me in the meantime |
A bugfix release would be HIGHLY appreciated! :) |
Date validation is brokein in certain circumstances and upstream has no released a fix yet (validatorjs/validator.js#2256)
This should be fixed in v13.12.0 which will be released after #2269 is merged |
Now released - https://www.npmjs.com/package/validator/v/13.12.0 |
Describe the bug
After upgrading to version 13.11.0, the validation of date strings stopped working as expected.
Examples
Here is a demonstration that compares the validation results between v13.11.0 and v13.9.0 Issue demonstration
Additional context
Validator.js version: 13.11.0
Node.js version: 18.17.0
OS platform: macOS
The text was updated successfully, but these errors were encountered: