title: Converting between timezones in PHP
body: <p>I am converting this time and date:</p>
  
  <pre><code>Thu, 31 Mar 2011 02:05:59 GMT
  </code></pre>
  
  <p>To the following time and date format:</p>
  
  <pre><code>Monday March 28 2011 4:48:02 PM
  </code></pre>
  
  <p>I am using the following PHP code to accomplish this, but I want to convert all time zones to PST/PDT. I looked at the PHP manual and saw this <code>date_default_timezone_set()</code> but I am not sure how to implement that into the code I have below.</p>
  
  <pre><code>$date = $messages[0]-&gt;CreationTime;
  echo date('l F j Y g:i:s A I', strtotime($date))
  </code></pre>