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

Improve handling of invalid dates #36

Open
mpostelnicu opened this issue Nov 7, 2018 · 0 comments
Open

Improve handling of invalid dates #36

mpostelnicu opened this issue Nov 7, 2018 · 0 comments
Assignees

Comments

@mpostelnicu
Copy link
Member

There are several invalid date issues in the database. The default behavior of DateTime::createFromFormat PHP function is to print warnings for invalid dates as long as the string is still parseable.

If warnings are detected, it is better to fail and print the error. This will catch invalid dates such as 0000-00-00 which are correct dates in terms of format, but are not "real" dates

@mpostelnicu mpostelnicu self-assigned this Nov 7, 2018
mpostelnicu added a commit that referenced this issue Nov 7, 2018
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