Comments - TIMESTAMP
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
When using the TIMESTAMP type in timezone settings with daylight savings, you must be aware that:
These problems can be largely obviated by setting the server timezone to UTC (temporarily, if you prefer), i.e.:
[*] Actually, not entirely true, as there may also occasionally be leap-seconds, represented by hh:59:59 repeating twice. So events with these timestamps may be more than one second apart, and there isn't a 1-1 correspondence between actual seconds and displayed seconds; and when storing decimal seconds (milliseconds, etc), once again all the local-times-are-out-of order issues can arise (even in the UTC timezone). See the following page in the MySQL docs: https://dev.mysql.com/doc/refman/8.0/en/time-zone-leap-seconds.html