Topic: config.time_zone Doesn't Appear to Change Time Zone

I'm attempting to change the over all Time Zone of my application.  However, The database is still saving records in UTC. 

In config/environment.rb
  config.time_zone = "Eastern Time (US & Canada)"

however t.timestamps is still providing: updated_at: "2008-12-02 22:23:07"

Any ideas?

Re: config.time_zone Doesn't Appear to Change Time Zone

config.time_zone just lets rails know that your server is set to this timezone so when it writes dates to the database it can properly convert it to UTC.
Now if you do Time.zone = "Eastern Time (US & Canada)" in your app this will change all the dates you from database from UTC to EST.

Better then best intranet/calendaring app Tofuapp.com

Re: config.time_zone Doesn't Appear to Change Time Zone

Forgive my ignorance, but where would I put the Time.zone in the app?  Does it go with each place I show the date-time?  And if so, how does it work into the code?  Thank you so much for your help!

Re: config.time_zone Doesn't Appear to Change Time Zone

I have it in my application.rb to get the current_user that logged in there time zone

Kind of like this;

application.rb

before_filter :set_user_time_zone

def set_user_time_zone
    Time.zone = current_user.time_zone if logged_in?
end

Better then best intranet/calendaring app Tofuapp.com

Re: config.time_zone Doesn't Appear to Change Time Zone

Thanks!  That does the Trick!