title: Get Client Local time from GMT offset
body: <p>In my website, I need to keep track of the user's local date/time without relying on Javascript. I have a table where each user's timezone offset in GMT is stored. So, for user X, the timezone offset may be stored as -5.</p>
  
  <p>To get the user's current local date and time, I am using the following code</p>
  
  <pre><code>int timeOffsetGMT = -5;
  DateTime localTime = DateTime.UtcNow.AddHours(timeOffsetGMT);
  </code></pre>
  
  <p>The above snippet of code works but does not account for daylight savings. Any thoughts on how I can factor in daylight savings to my calculation?</p>