-
Notifications
You must be signed in to change notification settings - Fork 442
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
MySQL Invalid date exception #438
Comments
Just poking my nose in but isn't this similar to #412 ? |
You can also start mysql server with --sql-mode=ALLOW_INVALID_DATES switch. |
more disturbingly, this is what I pushed #317 over a year ago to fix, but it still hasn't gotten merged. koenpunt is apparently starting to work on it now. |
@andyleap I think he hasn't :) Why not just setting It seems to fix the issue for me (after migrating from PHP 5.6 to PHP 7 and from MySQL 5.6 to MySQL 5.7) |
Depending on your MySQL configuration, errors like this can appear:
The error does make sense, because MySQL does not know about timezone (
UTC
part).So I tried to find where it does add the timezone, but yet without success.
This error can be suppressed, (or ignored?) by removing
STRICT_TRANS_TABLES
from thesql_mode
: http://dev.mysql.com/doc/refman/5.1/en/sql-mode.html#sqlmode_strict_trans_tablesThe text was updated successfully, but these errors were encountered: