January 19, 2038 03:14:07 GMT is now less than 20 years away. That's the time that UNIX's 32-bit timestamp rolls over. I'm working on designing some MySQL tables that may still be in use at that time.
This is the so-called Year 2038 problem.
It seems, from stuff I've tried on MariaDB 10.3, using the TIMESTAMP
datatype yields error 1292 (incorrect datetime value) for datestamps after the date rollover.
What is a good practice for designing these tables to be future-proof? I could use DATETIME
data, but TIMESTAMP
has some very useful features with respect to timezones.
Is there any chance some future version of MySQL (not to mention Linux and the other UNIX derivatives) will upgrade?