title: PHP get user's timezone
body: <p>After changing servers I received the following error...</p>
  
  <pre><code>&lt;b&gt;Warning&lt;/b&gt;:  date() [&lt;a href='function.date'&gt;function.date&lt;/a&gt;]: It is not
  safe to rely on the system's timezone settings. You are *required* to use the
  date.timezone setting or the date_default_timezone_set() function. In case you
  used any of those methods and you are still getting this warning, you most
  likely misspelled the timezone identifier. We selected 'America/New_York' for
  'EST/-5.0/no DST' instead in &lt;b&gt;/sessions.php&lt;/b&gt; on line &lt;b&gt;8001&lt;/b&gt;
  </code></pre>
  
  <p>The line this error message refers to is...</p>
  
  <pre><code>$date = date('Y-m-d G:i:s');
  </code></pre>
  
  <p>I'm not sure how that works though?</p>
  
  <p>So how do I get the user's time zone and then set it either as a built-in PHP variable or use it with <code>date()</code>?</p>