On 21 July, 08:08, Frederick Cheung <[email protected]> wrote: > On Jul 20, 9:31 pm, Steve Root <[email protected]> wrote: > > > If I save that to a regular string I get what looks correct to me: > > "2010-07-20 11:49:19" > > but saved in the entrycreated column it outputs as: "Sat Jan 01 > > 11:49:19 UTC 2000" > > Is you entrycreated column a time column ? Time columns only save a > time of day (and ignore the date), what you want is a datetime column. > > Fred >
Thanks! It was a simple as that. I'm sure I'd already checked my migration was creating a t.datetime column, but checking now it had t.time -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

