title: javascript timezone script for United States how to do daylight saving
body: <p>I have a working script that I push out to everyone's IE favorites list in our organization (see below).  Depending on where the office is geographically in the company they get routed to 1 of 4 urls.</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  
  &lt;script language="JavaScript"&gt;
  var today = new Date();
  var offset = (today.getTimezoneOffset() / 60) + 1;
  if (offset == 5) document.location.href = "url=EASTERNtime.com";
  else if (offset == 6) document.location.href = "url=CENTRALtime.com";
  else if (offset == 7) document.location.href = "url=MOUNTAINtime.com";
  else if (offset == 8) document.location.href = "url=pacifictime.com";
  else document.location.href = "url=pickyourowntimezone.com";
  
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What I am wondering about is how Daylight Saving time is going to affect my script since I know we have offices in Arizona and they don't recognize it.  What would I need to change to my script to make sure people are still routed correctly?  I was thinking something like..</p>
  
  <p>if date is between march 11th and November 4th run this...if not...run this...</p>
  
  <p>Does that make sense?  Or do I even need to worry about this and it will all sort itself out when their clocks change or don't?</p>