title: How do I get the current time zone of MySQL?
body: <p>Anyone knows if there is such a function in MySQL?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>This doesn't output any valid info:</p>
  
  <pre><code>mysql&gt; SELECT @@global.time_zone, @@session.time_zone;
  +--------------------+---------------------+
  | @@global.time_zone | @@session.time_zone |
  +--------------------+---------------------+
  | SYSTEM             | SYSTEM              |
  +--------------------+---------------------+
  </code></pre>
  
  <p>Or maybe MySQL itself can't know exactly the <code>time_zone</code> used,that's fine, we can involve <code>PHP</code> here, as long as I can get valid info not like <code>SYSTEM</code>...</p>