How does time_zone_select works?

I have:
    <%= form.datetime_select :datetime, :default => Time.now %>

all datetime are in UTC in the database, here is two questions:
1. how do I add the option for user to select time zone? how to user
time_zone_select?
2. what is the proper way to handle that in the controller? how to add
the datetime and timezone?

deeply appreciate any help.
-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.


Reply via email to