# Time\_zone\_select

**URL:** <https://www.ruby-forum.com/t/time-zone-select/181368>\
**Category:** Rails\
**Created:** [January 10, 2010, 11:57pm UTC](https://www.ruby-forum.com/t/time-zone-select/181368 "2010-01-10T23:57:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnny](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ecb155/32.png) [@johnny](https://www.ruby-forum.com/u/johnny)\
**Post date:** [January 10, 2010, 11:57pm UTC](https://www.ruby-forum.com/t/time-zone-select/181368/1 "2010-01-10T23:57:58Z")

</div>

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.
