In MySQL 8.0.28 we have a table column named expiry_date
as datetime
filed.
When we try to insert data greater than 15 years, it fires
ERROR 1292: 1292: Incorrect datetime value: '2038-01-20 03:36:33' for column 'expiry_date' at row 1
For 2038-01-19 03:36:33
date, its inserting to DB.
Table ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
We can not change data-type as this table is in production system.
What is causing this issue? Following threads were checked, but not addressing our issue :
incorrect-datetime-value-while-saving-data-to-mysql