Is the system time on the box correct? If the time got changed to pacific time 
but it's still set as located in the UTC timezone, it would cause this issue.


On Wednesday, June 20, 2012 at 1:04 PM, Guyren Howe 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] (mailto:[email protected])
> http://groups.google.com/group/sdruby
>  
>  


-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to