Most companies make a mistake at the very beginning. They set their system time zone to Eastern, Central, Mountain, or Pacific time. Then, they install their database on it. They use all manner of timestamp and date types and insert terabytes of data. After that, it becomes almost impossible (in terms of being worth the effort) to change it some months or years later when the company has a popular product or service. One of the unfortunate issues that may arise is illegal datetimes.
On Sunday, March 11, 2018, when US time zones switched To daylight savings time, there was no 2AM hour. When we switch back to normal time on Sunday November 4, there will be two 2AM hours.
Inevitably, out of many database servers and many different types of application servers, some data manages to get inserted into MySQL with an illegal datetime during the 2AM hour on the “spring forward” date. Each …
[Read more]