search for: goes_to_bar

Displaying 1 result from an estimated 1 matches for "goes_to_bar".

2007 Apr 03
1
Some timezone trouble involving tzinfo and postgresql
...app allows users to make many foos. One at a time. And each foo goes to the bar for a pint at a specific time, but we initially set it to Time.now(), usually. Well, now I''ve updated foo_controller to do it according to the user''s time_zone: def new @foo = Foo.new @foo.goes_to_bar = @current_user.tz.utc_to_local(Time.now) end This correctly sets the selector for the timing of the Foo to "now" in the user''s local time. On save, this value is appropriately stored in postgresql in UTC. 7. Now, it''s time display the Foo. I don''t want to...