[MySQL] Check the system and session time zones

Created on November 30, 2026

You can use SHOW VARIABLES to see the time zone settings that apply to your MySQL connection.

SHOW VARIABLES LIKE '%time_zone%';

An example result is:

+------------------+--------+
| Variable_name    | Value  |
+------------------+--------+
| system_time_zone | UTC    |
| time_zone        | SYSTEM |
+------------------+--------+

system_time_zone records the host time zone detected when MySQL started. time_zone is the current session's setting. SYSTEM means the session uses the system time zone. To check the global default for new connections, run the following query.

SELECT @@GLOBAL.time_zone;
MySQL