title: Attempting to display the current time in GMT, PST and EST using the dateTime class
body: <p>I have attempted to do this using the following code:</p>
  
  <pre><code>$date = new DateTime('now');
  
  $datePST = $date-&gt;setTimezone(new DateTimezone('PST'));
  
  $dateEST = $date-&gt;setTimezone(new DateTimezone('EST'));
  
  echo $date-&gt;format('H:i:s');
  echo '&lt;br /&gt;';
  echo $EST = $dateEST-&gt;format('H:i:s');
  echo '&lt;br /&gt;';
  echo $PST = $datePST-&gt;format('H:i:s');
  </code></pre>
  
  <p>But they all output the same time. Why are they not outputting the correct times?</p>