What version of rails? Can you post a few lines of the code? The way that you're setting your timestamp field may be causing the problem...
On Wednesday, June 20, 2012 1:04:17 PM UTC-7, Gisborne wrote: > > I’m sure it’s just me, but this looks just wrong. > > My timestamp field is time without zone. > > I’ve got a suitable default time zone set in Rails. > > I create a record. > > I display the timestamp. > > The time displayed is off by 7 hours. > > The behavior that would make sense to me is that the value written to the > database would always be UTC, which would get converted to the local time > zone on display. > > But Rails appears to be doing the latter while not doing the former. So > the time in the database is local time. But when I display it, it’s having > 7 hours subtracted. > > This seems too obviously stupid. I must be missing something. -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby
