title: Timezone offset with nodejs server side
body: <p>I have a <code>nodejs</code> application which is hosted in <code>IST</code> Timezone server. The application has a configuration to accept <code>timezone</code> from user (Pacific Daylight Time). So based on the user <code>timezone</code> I need to display data to him. But when I fetch <code>timezone</code> for particular user in server to retrieve some statistics data in server, even though proper <code>timezone</code> is fetched it still returns <code>Date()</code> relating to the server and not according to user preferred <code>timezone</code>. Below is the piece of code am following:</p>
  
  <pre><code>var offset=-8; //(Pacific Daylight Time)
  var d = new Date( new Date().getTime() + offset * 3600 * 1000);
  </code></pre>
  
  <p>The above <code>var d</code> will still have server timezone captured and fetches data based on server <code>timezone</code>. <strong>How can I get the <code>date</code> relating to the <code>client</code>'s timezone preference, in server?</strong></p>