title: How to set php timezone
body: <p>I have tried to fix this for hours but without any bigger success. I need this to be working</p>
  
  <p>(I have managed to fix another function (while not using <code>{}</code> tag) using a normal php function such as: </p>
  
  <pre><code>$mytime = $utc_str = gmdate("M d Y H:i:s", time());
  $utc = strtotime($utc_str); )
  </code></pre>
  
  <p>But it doesn't allow me to set a normal gmdate while inside <code>{}</code> tag.</p>
  
  <p>this is what have worked decent but the for format is wrong.</p>
  
  <pre><code>{
      var $dateFormat = 'Y-m-d g:i:s A';
  }
  </code></pre>
  
  <p>result: <code>2013-05-17 8:52:38 AM</code> (I need to have timezone: gmt +01) which makes the time <code>16:52:38 PM</code> instead. </p>
  
  <p>What i need is a format working to switch gmt and works with <code>var $dateFormat = ''</code></p>
  
  <p>Edit: the code I'm working on: </p>
  
  <pre><code>class Guestbook{
  
     var $messageDir = 'messages';
  
     var $dateFormat = 'Y-m-d g:i:s A';   - This is where I need (GTM +01 timezone)
     var $itemsPerPage = 5;
     var $messageList;
  
     function processGuestbook(){
     if (isset($_POST['submit'])) {
        $this-&gt;insertMessage();
     }
  
     $page = isset($_GET['page']) ? $_GET['page'] : 1;
  
     $this-&gt;displayGuestbook($page);
  }
  </code></pre>