title: Datetime handling in rails 4
body: <p>I have a rails 3 app I've updated to 4.1 and have one failing test left that is driving me crazy. It seems that in rails 4, when you create a datetime with only a date, it adjust the time to the current time zone, but did not in rails 3. </p>
  
  <p>Easier with an example:</p>
  
  <p>Rails 3.2:</p>
  
  <pre><code>obj = Model.new
  obj.expiration_date = "2016-07-01"
  obj.expiration_date
  =&gt; Fri, 01 Jul 2016 00:00:00 UTC +00:00
  </code></pre>
  
  <p>Rails 4.1</p>
  
  <pre><code>obj = Model.new
  obj.expiration_date = "2016-07-01"
  obj.expiration_date
  =&gt; Fri, 01 Jul 2016 04:00:00 UTC +00:00
  </code></pre>
  
  <p>Both dates are in UTC, however the timestamps are 4 hours apart. </p>
  
  <p>Does anyone have any suggestions on what might have changed in rails 4 that could cause this?</p>