title: Change DateTimeOffset.Offset Property?
body: <p>My end goal is to get universal time from client with NO offset - just UTC time. I try to accomplish this like so:</p>
  
  <p>Javascript: <code>(new Date()).toUTCString()</code>, the output of which logs: <code>Thu, 17 Mar 2016 15:13:23 GMT</code>, which is exactly what I need. </p>
  
  <p>Then I take it to server and try to convert it to <code>DateTimeOffset</code>:</p>
  
  <pre><code>string dateTimeOffsetPattern = "ddd, dd MMM yyyy HH:mm:ss 'GMT'"; 
  
  DateTimeOffset clientLoginTime = DateTimeOffset.ParseExact
      (timeStringFromClient, dateTimeOffsetPattern, CultureInfo.InvariantCulture);
  </code></pre>
  
  <p>Which results in: </p>
  
  <pre><code>3/17/2016 3:13:23 PM -04:00 
  </code></pre>
  
  <p>Somehow it adjusts the time for my local (Eastern) offset. I do NOT want this to happen, I want it to just return the UTC time, like so:</p>
  
  <pre><code>3/17/2016 3:13:23 PM +00:00
  </code></pre>
  
  <p>P.S. I did just ask another question about this, and I apologize, since I feel like it should be easy enough, but I don't get it. This should be really simple, but it looks like <a href="https://msdn.microsoft.com/en-us/library/bb396765(v=vs.110).aspx" rel="nofollow">offset doesn't have a setter</a> (unless I am completely missing some C# basics as usual):</p>
  
  <pre><code>public TimeSpan Offset { get; }
  </code></pre>