mysql Invalid default value for time stamps

Subject:

ref http://stackoverflow.com/questions/9192027/invalid-default-value-for-create-date-timestamp-field

 

mysql in production is strict you need to in mysql:

  • SET SQL_MODE='ALLOW_INVALID_DATES';
2016-05-07 17:30:22gstlouis