Using rails 2.3.9 and ruby 1.8.7
I am trying add time zone in the site according to user's time zone
(selected by the user from the drop down of time zones)Code is done as
follows, but time zone is not getting saved in the database.
IN Application Controller
Time.zone = current_user.time_zone if current_user
IN View form(haml)
f.time_zone_select :time_zone, ActiveSupport::TimeZone.all.sort
config.time_zone = 'UTC'
IN User table added time_zone as string column
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 firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.