title: Timezone Problems when calculating the difference between two Dates in JavaScript
body: <p>I use the following to calculate the difference between two dates in JavaScript:</p>
  
  <pre><code>var dateOne = new Date; // Now
  var dateTwo = new Date( dateOne.getTime() + 60 * 1000 ); // Now + One Minute
  var difference = new Date( dateTwo - dateOne );
  </code></pre>
  
  <p>So, logically, <code>difference</code> should be one minute. But Firebug tells me that the difference is one hour off, and the timezone somehow also changes!</p>
  
  <pre><code> dateOne = Date {Sun Sep 11 2011 01:07:55 GMT+0200 (CET)}
   dateTwo = Date {Sun Sep 11 2011 01:08:55 GMT+0200 (CET)}
   difference = Date {Thu Jan 01 1970 01:01:00 GMT+0100 (CET)}
  </code></pre>
  
  <p>How can I fix this?</p>