title: How do you change the timezone in PHP for an existing timestamp?
body: <p>The code for the date and time function:</p>
  
  <pre><code>function date_and_time($format,$timestamp) {
  
  $date_and_time = date($format,$timestamp);
  return $date_and_time;
  
  }
  </code></pre>
  
  <p>And then the code to display it:</p>
  
  <pre><code>    &lt;?php
  
          echo date_and_time("dS F Y", strtotime($profile[last_activity_date_and_time]));
  
      ?&gt;
  </code></pre>
  
  <p>The value of $profile[last_activity_date_and_time] is 2010-01-18 14:34:04</p>
  
  <p>When displayed it shows up as 18th January 2010 - 02:34pm</p>
  
  <p>But, is there any way to change the timezone it is displayed in?</p>