|By default, MySQL servers run under the |
If your export timestamp values from a MySQL server that ignores DST to one that adjusts to it, timestamp values for the hour that begins at the time of the spring shift forward will elicit an "Incorrect datetime value" error because the DST time change makes that hour disappear, so such timestamp values---e.g., '2022-03-11-02...'---are invalid.
Remedies to choose from ...
1 If the operating system supports it, turn off DST.
2 Use a timezone setting that ignores DST, e.g.,
3 Set the system timezone to GMT + some constant offset. e.g.,
4 Store dates as timestamp integers.
5 Use datetime instead of timestamp columns and add a timezone constant to all values.
Last updated 9 Apr 2022