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

Moment warning in console #12

Closed
mikemitchel opened this issue May 28, 2020 · 1 comment · Fixed by #13
Closed

Moment warning in console #12

mikemitchel opened this issue May 28, 2020 · 1 comment · Fixed by #13

Comments

@mikemitchel
Copy link
Contributor

moment throwing this warning when validation a text date, aka 08/21/1988.

moment.js:285 Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.

need to pass 2nd arg for format option to moment so it knows how to parse that date.

@mikemitchel
Copy link
Contributor Author

merged fix, closing

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 a pull request may close this issue.

1 participant