Max msyql datetime value | Error 22007, 1292

When trying to insert into a DATETIME column you might have gotten an error like:

Incorrect datetime value: '2038-03-28 17:51:34' for column 'expires_at' at row 1

Well, that's probably because your column is a TIMESTAMP which has a maximum value of '2038-01-19 03:14:07' UTC & otherwise seems to work much like a date/datetime column.

Update your database to use a DATETIME column instead of a TIMESTAMP column & you should be good to go.

See mysql datetime documentation

If this isn't your issue