title: Get timezone difference between client and server
body: <p>If my user is in California and they have their computer set to PST, it's 1:00 pm there. If my server is set to EST, the current server time is 4:00 pm.</p>
  
  <p>I need a way to get the timezone difference between the client and the server, either in Javascript or C#. In my example, I would get 3 (or -3, doesn't matter).</p>
  
  <p>Does anyone know how to do this?</p>
  
  <p><strong>EDIT: Possible solution for RedFilter</strong></p>
  
  <p>Doing it all in javascript:</p>
  
  <pre><code>serverDate = new Date('&lt;%= DateTime.Now.ToString() %&gt;');
  clientDate = new Date();
  diffMin = (serverDate.getTime()-clientDate.getTime())*1000*60;  //get difference in minutes
  </code></pre>
  
  <p>Think that would work? Or would both of those return the same time?</p>