I\'ve recently taken over an old project that was created 10 years ago. It uses MySQL 5.1.
Among other things, I need to change the default character set from latin1
I also got
SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column
error info
Fix this by changing 0000-00-00 00:00:00 to 1970-01-01 08:00:00
0000-00-00 00:00:00
1970-01-01 08:00:00
1970-01-01 08:00:00 unix timestamp is 0