title: Fetch a Rails ActiveRecord 'datetime' attribute as a DateTime object
body: <p>I have an attribute in one of my models that contains a Date/Time value, and is declared using <code>t.datetime :ended_on</code> in my migrations.</p>
  
  <p>When I fetch this value using <code>myevent.ended_on</code>, I get a <code>Time</code> object. The problem is that when I try to use this attribute as an axis in a <a href="http://flotilla.rubyforge.org/" rel="nofollow noreferrer">Flotilla</a> chart, it doesn't work properly because Flotilla only recognizes dates as <code>Date</code> or <code>DateTime</code> objects.</p>
  
  <p>I thought about writing a virtual attribute that will convert the existing Time value to a DateTime, but I'm wary of doing this, since I've heard that Time can't handle dates later than 2040, and I don't wish to risk creating a "2040 bug" to worry about later.</p>
  
  <p>Is there any way I can persuade ActiveRecord to return DateTime objects for this attribute instead of Time objects?</p>