title: Ruby Time object for midnight UTC
body: <p>I need to be able to create UTC Time objects in Rails, but no matter what I try it ends up being a local Time object <em>converted</em> to UTC.</p>
  
  <p><strong>application.rb</strong></p>
  
  <pre><code>config.time_zone = "UTC"
  </code></pre>
  
  <p><strong>Examples</strong><br>
  I try to create a Time object for midnight on New Years 2017:</p>
  
  <pre><code>Time.new(year, month, 1, 0, 0, 0)
  </code></pre>
  
  <p><em>=> 2017-03-01 00:00:00 -0500</em></p>
  
  <pre><code>Time.new(year, month, 1, 0, 0, 0).in_time_zone
  </code></pre>
  
  <p><em>=> Wed, 01 Mar 2017 05:00:00 UTC +00:00</em></p>
  
  <pre><code>Time.new(year, month, 1, 0, 0, 0).in_time_zone('UTC')
  </code></pre>
  
  <p><em>=> Wed, 01 Mar 2017 05:00:00 UTC +00:00</em></p>