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

Incorrect datetime value: '0000-00-00 00:00:00' for column 'last_login' #54

Open
lix-dev opened this issue Aug 2, 2018 · 2 comments
Open

Comments

@lix-dev
Copy link

lix-dev commented Aug 2, 2018

Incorrect datetime value: '0000-00-00 00:00:00' for column 'last_login' at row 1 in /var/www/main/ftpadmin/includes/ez_sql_mysqli.php on line 272

After i updated my MySQL to 5.7.22

@bwulff
Copy link

bwulff commented May 28, 2019

A zero date(time) cannot be used anymore in MySQL 5.7+ (see STRICT_TRANS_TABLES, NO_ZERO_DATE).
An easy fix for the installation is to set the default date to '1970-01-01 00:00:01' but I suspect the application uses a zero date to indicate that the user never logged in. So this had to be changed.
The other option is to re-configure MySQL so that it doesn't run in strict mode.

@sunlix
Copy link

sunlix commented Oct 29, 2021

There are no checks inside the application. Just a default value for newly db entries.
I have fix that by set the most early supported datetime value. Without removing NO_ZERO_DATE.

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

3 participants