title: Calculating JavaScript date time with offset
body: <p>I am experiencing some unexpected results with a GMT time zone offset calcultaion.</p>
  
  <p>I am using the ExtJS date class to help calculate the time that a message arrives from the server at GMT 0 to the user's local machine which is currently GMT +8.</p>
  
  <p>I thought that if i calculated the offset, then added that to the timestamp in seconds then i could use the following calculation to give me a string to format as i please.</p>
  
  <pre><code>var d = new Date((stamp + offset) * 1000);
  </code></pre>
  
  <p>stamp is the date/time in seconds as is the offset.</p>
  
  <p>This returns the current date and time at my location but plus 8 hours.  If i do not add the offset then the time is correct.</p>
  
  <p>Does the method new Date() automatically give me the date/time at local time?</p>