title: How to handle Timezone offset with daylight savings?
body: <p>In my website user A creates an event that starts at 9:00am. I convert that time to GMT so that it if User B in a different timezone two hours ahead see's that event it can be converted to the time zone of User B and show that the event starts at 11:00am.</p>
  
  <p>My problem is that if user A creates an event during daylight savings then views it when daylight savings is over the timezone offset will be off by one hour. This results in the event starting at 8:00am when it is not daylight savings and 9:00am when it is daylight savings. Any recommendations on how to fix this with javascript or php?</p>
  
  <p>My only thought is when I get the timezone offset like below should I always set the date to january so that I always get the same timezone offset regardless of the actual month? Or is there a better way to deal with this?</p>
  
  <pre><code>d = new Date();
  d.setMonth(1);
  d.getTimezoneOffset()
  </code></pre>