title: How to get timezone hour offset and account for DST with PEAR::Date?
body: <p>I am trying to get the offset hours from UTC, given a summer date. My system time is set to America/Los_Angeles.</p>
  
  <p>I have the following:</p>
  
  <pre><code>require_once("Date.php");
  
  $dateTZ = new Date_TimeZone('America/Los_Angeles');
  
  echo $dateTZ-&gt;getOffset(new Date('2009-07-01 12:00:00'))/1000/60/60;
  </code></pre>
  
  <p>This prints '-8'; shouldn't it show '-7'?</p>
  
  <pre><code>echo $dateTZ-&gt;getOffset(new Date())/1000/60/60;
  </code></pre>
  
  <p>also prints '-8'.</p>
  
  <p>What am I doing wrong?</p>