[MySQL] Check the current time zone settings

Created on November 30, 2026

Query @@global.time_zone for the server-wide setting and @@session.time_zone for the current connection.

SELECT @@global.time_zone, @@session.time_zone;

Example output

+--------------------+---------------------+
| @@global.time_zone | @@session.time_zone |
+--------------------+---------------------+
| SYSTEM             | SYSTEM              |
+--------------------+---------------------+

To list time zone variables, use this query.

SHOW VARIABLES LIKE '%time_zone%';

SYSTEM means MySQL uses the operating system's time zone.

MySQL