title: UTC timestamp in javascript
body: <p>I have countdown plugin which takes a timestamp and returns a countdown in form of days / houers / minutes .... all my timestamps are stored in UTC timezone .</p>
  
  <p>So this used to work fine until i've changed my website timezone .</p>
  
  <p>I have to change my timezone  from time to time
  ... so now all the countdowns that i get are wrong .</p>
  
  <p>This is how my plugin works basically </p>
  
  <pre><code>time_left_ms = given timestamp - currentstime stamp / 1000 ;
  </code></pre>
  
  <p>e.g</p>
  
  <pre><code>var time_left = Math.floor((options.timestamp - (new Date())) / 1000);
  </code></pre>
  
  <p>So i thought i can fix it using UTC timestamp like this </p>
  
  <pre><code>var d = new Date();
  var utc =Date.UTC(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate(), d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds(), d.getUTCMilliseconds());
  
  left = Math.floor((options.timestamp - (utc)) / 1000);
  </code></pre>
  
  <p>but still the same wrong result ...
  after that i've tried this to see whats going on </p>
  
  <pre><code>console.log( d +'####'+utc +'####'+d.getTime());
  </code></pre>
  
  <p>and this is the output </p>
  
  <pre><code>Thu Sep 19 2013 19:10:13 GMT+0330 (Iran Standard Time)##1379605213010##1379605213010
  </code></pre>
  
  <p>whats wrong ? apparently time zone is on Asia/Thran ... but why do i get the same timestamp for Asia/tehran and UTC ? ... both are <code>1379605213010</code></p>