How to get selected timezone from dropdown in rails
<p>Drop down for timezones in form</p>

<pre><code>&lt;%= time_zone_select :time_zone, ActiveSupport::TimeZone.all, nil,
 {:include_blank =&gt; false,:prompt=&gt;"Select Time Zone"} %&gt;
</code></pre>

<p>After selecting some timezone and submitting form, when I do params["time_zone"] I get</p>

<pre><code>"#&lt;ActiveSupport::TimeZone:0x00000001ff5450 @name=%22American Samoa%22, @utc_offset=nil, @tzinfo=#&lt;TZInfo::TimezoneProxy: Pacific/Pago_Pago&gt;, 
 @current_period=#&lt;TZInfo::TimezonePeriod: #&lt;TZInfo::TimezoneTransitionDefinition: #&lt;TZInfo::TimeOrDateTime: 439038000&gt;,#&lt;TZInfo::TimezoneOffset: -39600,0,SST&gt;&gt;,nil&gt;&gt;, 
#&lt;ActiveSupport::TimeZone:0x00000002024bb0 @name=%22International Date Line West%22, @utc_offset=nil, @tzinfo=#&lt;TZInfo::TimezoneProxy: Pacific/Midway&gt;,..............
</code></pre>

<p>How I get selected timezone? <strong>Note:</strong> I save timezone in string</p>