title: How to deal with UTC times and Rails/ActiveRecord
body: <p>I'm using Rails 3.2.8. When I generate a scaffold with a time field or datetime field. The HTML form field gets pre-populated with the current date/time in UTC. Great that it's pre-populated with the current date/time, but because it's in UTC, we have to change the time back 7 hours every time (which will sometimes require setting the day back 1 also, possibly month and year too). And then it seems the UTC time gets stored in the database, so I'll have issues displaying/editing it as well if I recorded it in our local time.</p>
  
  <p>I looked at the <a href="http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#method-i-time_select" rel="nofollow">Ruby documentation for the form helpers to deal with local time</a> better, but I don't see anything relevant.</p>
  
  <p>What's the best way to deal with editing and displaying dates and times in Rails?</p>
  
  <p><em><strong>UPDATE</em></strong>: To clarify, I like the idea that UTC time is stored in the database. I just want the <code>time_select</code> and <code>datetime_select</code> form helpers to edit the times in the user's local timezone. And, of course, I want to easily display the time in the user's local timezone.</p>