TIL MySQL is DST-aware and prevents storage of invalid times. This happened when running a database seeder on my local
machine, time zone America/Chicago. A randomized date in 1983, 1983-04-24 02:22:57
, caused the following error:
SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '1983-04-24 02:22:57'
After some digging around, I realized 1983's Daylight Savings Time started on April 24th at 2 AM, where 2 AM would be skipped altogether, jumping to 3 AM. This meant any time zone-aware time between 2 and 3 AM was